-
Notifications
You must be signed in to change notification settings - Fork 9
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
Proposal to (formally) allow \cat
outside footnotes and sidebars
#50
Comments
I think this would be a good for certain use cases. For example it would be a good way to implement NIV 1984 formatting where there are several different list styles. These have been harmonized in the latest NIV.
Note: One would apply a category to character markup or milestones using word level attributes |
Proposal for a Categories Module CategoriesUSFM 3.1 provides a generalized way of adding a category attribute to many paragraph markers. Translation editing and publishing software may format text based on these these categories, for example, to differentiate the formatting between the table of contents and some other front-matter tables. Categories were originally introduced in USFM 2.1 to support Study Bible publishing to allow a set of study Bible content categories to be defined and inserted into
The current USFM 3.0 implementation allows their use in all note types
USFM 3.1 extends their use to all paragraph styles that fall under these classifications:
General SyntaxThe category attribute takes the form of A category attribute may be added to any of the above types. For note type markers the category field immediately follows the caller specification:
For paragraph type markers the category field immediately follows the marker:
|
I don't have any problem with this proposal except that I think it would need to be for version 3.2. I believe this would take a significant effort to implement in Paratext and USFM 3.1 is supposed to only have minimal changes that are related to formulizing the specifications. |
Agreed for 3.2 |
How do we add \cat to a table in USFM given there is no overall table structural marker? Likewise for lists? |
Not sure I understand the question. currently in ptxprint we specify it after the table row marker. I would suggest that there be a decision made, whether the final value is the one that affects the table as a whole, or if it is preferable to make it the first one. \tr\cat fee\cat*\thc1-2 A title for the table which should span columns 1--2
\tr\tc1 Shephathiah \tcr2 372
\tr\cat fie\cat*\tc1 Uzz son of Bildad the Shuhite \tcr2 72
\tr\cat fo\cat*\tc1 \v 4 Hepphathiah \tcr2 272
\tr\tc1 \v 4 Thomas \tcr2 273
\tr\cat fum\cat*\tc1 \v 4 Og \tcr2 27 Unless there's a plan to introduce a specific end-of-table marker, I'd assume that the current category will be continued until the implicit end-of-table that is triggered by encountering a non-table paragraph marker. For lists, I'd assume a similar pattern, of the first list marker defining the category, with the category ending at the first non-list paragraph marker. |
The natural place in USX would be:
But the USFM of
So I wonder which way we want to jump on this. One advantage of cat in the row is that then people could style their rows (e.g. coloured backgrounds) differently from each other. But is that overkill for what is needed? |
I would allow \cat in both places, so people can apply a table style or a row style. If you only want only one then I would go with the row. If you wanted a table style you could just apply the style to every row in the table, or your business rules could say the style on the first row is a table style and all other rows are row styles. |
I hope Martin's just had a brain glitch... If not, can I point out that \cat isn't a character style, but a layer of styling? If Martin's right about the mapping, then I think it'd be far better, from a usx point of view, if it were:
Or
Although I guess you might want to make it its own node type, which would (possibly) simplify the application of multiple cats to one table...
|
USFM3.0 includes
\cat category\cat*
for applying special formatting to (extended) footnotes and entire side bars.I would like to suggest that this is overly restrictive.
In order to differentiate the formatting between, say, the table of contents and some other front-matter tables, PTXprint has (already) extended its application to tables thus:
We also allow applying
\cat
to a single paragraph, where there may be some special, distinct purpose for the text, but a full side-bar would be overkill:Similarly, it seems to me that there are different contexts for lists, even those enumerating a total, and what is appropriate formatting for the census in Numbers 1 might not be appropriate for contributions to the temple and so on.
I would therefore suggest that the standard also allow
\cat ... \cat*
to be applied:For each of these, I would suggest that the
\cat ... \cat*
should appear before any content, immediately after the (first)\p
,\tr
,\lh
or\li
as applicable.(I would not suggest permitting this use inside a sidebar, on the basis that sidebars are complicated enough!)
The text was updated successfully, but these errors were encountered: