aboutsummaryrefslogtreecommitdiffstats
path: root/src/xfdf.lisp
AgeCommit message (Collapse)Author
2023-04-21Add license (GNU GPLv3+)Teddy Wing
2023-04-21xfdf.lisp: Remove old code and TODOs for nested fieldsTeddy Wing
Nested field handling works now.
2023-04-21field-xfdf*: Extract nested field handling to functionTeddy Wing
Move this logic to a named function. Adjust the names of the other string building functions to be more consistent now that I have this one which does something similar but at a different level.
2023-04-21build-xfdf-outer-field: Rename inner-fields-str to inner-fields-stringTeddy Wing
It occurred to me that this is Lisp, and we don't really need to abbreviate things.
2023-04-21field-xfdf: Add documentation to these functionsTeddy Wing
2023-04-21build-xfdf-field: Add function documentationTeddy Wing
2023-04-21xfdf.lisp: Extract wrapper field printing code to functionTeddy Wing
2023-04-21xfdf.lisp: Extract field printing code to functionTeddy Wing
Trying to reduce the size of the `field-xfdf*` function.
2023-04-21xfdf.lisp: Extract checkbox default value modification to functionTeddy Wing
2023-04-21xfdf.lisp: Remove debug printsTeddy Wing
The traversal and field XML function works now.
2023-04-21xfdf.lisp: Extract '2' magic number to constantTeddy Wing
2023-04-21xfdf.lisp: Get nested fields workingTeddy Wing
This now prints nested form fields correctly. * Needed a separate string format for the container field. * Had to use `consp`, otherwise `nil` checkbox values wouldn't be recognised and a corresponding `<value/>` line wouldn't be printed. * Needed to add a missing nested field to the test's expected value.
2023-04-21xfdf.lisp: Print innermost fields of nested fieldsTeddy Wing
Making progress printing nested form fields. Now we print the innermost fields, but aren't printing the container fields.
2023-04-21xfdf.lisp: Try to recurse over nested fields (WIP)Teddy Wing
This isn't working yet. I'm working out how to set up the recursion to print fields hierarchically.
2023-04-20xfdf.lisp: Ideas for hierarchical fieldsTeddy Wing
Ideas for an implementation change to allow writing XFDFs with nested fields.
2023-04-16write-xfdf: Add function documentationTeddy Wing
2023-04-16Output XFDF fields into XMLTeddy Wing
Write `<field>` elements to the XFDF XML based on the cons cells in the `fields` input list. Change true and nil values to the FDF/XFDF checkbox value format of "Yes" and "Off". Also decided to use lowercase `t` to match the case of `nil`. Not sure if that makes sense.
2023-04-16Add test systemTeddy Wing
Write a test for the `write-xfdf` function. Worked out how to create the test system from: - https://lispcookbook.github.io/cl-cookbook/testing.html - https://github.com/sjl/cl-digraph/blob/master/cl-digraph.test.asd - https://github.com/fukamachi/dexador/blob/master/dexador-test.asd Add the test string to the `write-xfdf` function to pass the test and check that the test runner is set up correctly.
2023-04-16Scaffold for a library to generate XFDF XMLTeddy Wing
The library should, given a list of cons cells, generate XFDF data based on those keys and values.