You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\fig format is configured differently for USFM 1.0 and USFM 2.0. The fields are the same, but in 1.0, the fields are defined as | separated with a specific order assigned to the fields whereas in 2.0, the fields are specified by the name of the field and =.
In this example, the 2.0 version of the figure is \fig Jesus Birth|src="JesusBirth.jpg" size="span"\fig* and the 1.0 format of the same figure with a different caption is \fig Mary Joseph and Jesus|JesusBirth.jpg|span|||||\fig*
Parsing these using json tools gives different results for the wrapper atts properties. Console log was used to dump the wrapper element that was created processing these two features
The one on the top was generated from the 2.0 version and the bottom from the 1.0 version. Currently, to display both, my code has to check and see if there is an src element and if not is there a unknownDefault_fig element and process the fields that way. It would seem to be preferable for the proskomma tools to detect the 1.0 version and create a result that would look like the 2.0 version so that users don't have to worry about the internal usfm formatting.
The text was updated successfully, but these errors were encountered:
Enhancement request:
\fig format is configured differently for USFM 1.0 and USFM 2.0. The fields are the same, but in 1.0, the fields are defined as | separated with a specific order assigned to the fields whereas in 2.0, the fields are specified by the name of the field and =.
![Screenshot 2024-01-03 at 10 10 36 AM](https://private-user-images.githubusercontent.com/6209188/293949542-31dadb3c-d2b1-4379-8176-9c3ed64dbcfa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzODgxMTEsIm5iZiI6MTczOTM4NzgxMSwicGF0aCI6Ii82MjA5MTg4LzI5Mzk0OTU0Mi0zMWRhZGIzYy1kMmIxLTQzNzktODE3Ni05YzNlZDY0ZGJjZmEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMTkxNjUxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YzdlYTIzZTk1YWMwM2QwYzJiNjcxYzAwMTdhY2MzZjdiNzJjZTMwZjdhMjRiYmQ2YmJjZTg0MTNjNjBjYjM3YiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.uhoEISusHgdTgvHq0GOCcGR4CoekfEj9eIoOmEHX6vU)
In this example, the 2.0 version of the figure is \fig Jesus Birth|src="JesusBirth.jpg" size="span"\fig* and the 1.0 format of the same figure with a different caption is \fig Mary Joseph and Jesus|JesusBirth.jpg|span|||||\fig*
Parsing these using json tools gives different results for the wrapper atts properties. Console log was used to dump the wrapper element that was created processing these two features
The one on the top was generated from the 2.0 version and the bottom from the 1.0 version. Currently, to display both, my code has to check and see if there is an src element and if not is there a unknownDefault_fig element and process the fields that way. It would seem to be preferable for the proskomma tools to detect the 1.0 version and create a result that would look like the 2.0 version so that users don't have to worry about the internal usfm formatting.
The text was updated successfully, but these errors were encountered: