Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse front and back matter and extra books according to their stylesheets. #483

Open
davidbaines opened this issue Aug 14, 2024 · 0 comments
Labels
research Research topics usfm USFM parsing issue

Comments

@davidbaines
Copy link
Collaborator

Front and back matter and glossaries may use a stylesheet named frtbak.sty
Extra books may use a stylesheet named usfm_mod.sty

There is a help topic in Paratext with more information, the key information is here:

How do I create a separate stylesheet for front and back matter?

Material entered in front and back matter (or any of the peripheral books in Paratext) may need to use a structure of styles which don't follow the rules of the USFM standard. You may also want to use different formatting for a particular style from that used in the regular Bible text. To allow for such differences, these peripheral books need to use a separate stylesheet.
The stylesheet must be in the project folder in UTF-8 encoding with the name frtbak.sty

Add entries to this file for any markers used in front and back matter which should be handled differently in these books from the same markers in Biblical books. This stylesheet does not function like the custom stylesheet, custom.sty, which allows customisation of the standard stylesheet by adding just the desired changes. The frtbak.sty stylesheet effectively replaces the standard stylesheet for particular books and so all markers used in any of those books have to be defined in their entirety.
The frtbak.sty stylesheet will be used for all Paratext books with \id lines containing FRT, BAK, XXA to XXG, OTH, INT, CNC, GLO, TDX, and NDX.

If an Extra book (XXA to XXG) contains a Bible module, the frtbak.sty stylesheet is not used for that Extra book. The stylesheet for an Extra book containing a Bible module is usfm_mod.sty

@davidbaines davidbaines added enhancement New feature or request pipeline 6: infer Issue related to using a trained model to translate. usfm USFM parsing issue research Research topics and removed enhancement New feature or request pipeline 6: infer Issue related to using a trained model to translate. labels Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
research Research topics usfm USFM parsing issue
Projects
None yet
Development

No branches or pull requests

1 participant