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
I long time ago I suggested there are multiple use cases for the fig tag, and requested a slight expansion of the official \fig ... \fig* definition to cover these use cases.
I've implemented the following uses from a fork of USFM 2.4, but It would be nice if the current USFM spec included these arguments: inline, relative x-dim and y-dim, and wrap
My implementation:
Type
Code
Centered in column
\pc \fig Description (xdim x ydim)|URL| col ||||\fig*
Centered in all columns
\pc \fig Description (xdim x ydim)|URL| span ||||\fig*
Start of Paragraph with wrap
\m \fig Description (xdim x ydim)|URL| col ||||\fig*
End of 1st line with wrap
\pr \fig Description (xdim x ydim)|URL| col ||||\fig*
Inline as a character
\fig Description (xdim x ydim)|URL| inline ||||\fig*
**Notes wrap is currently implemented on the preceeding paragraph. It more appropriately deserves a boolean (true/false) argument within the tag. I've implemented this way to acheive the closest representation with current USFM implementation.
x-dim and y-dim are currently passed directly through to Libre-Office, so current values are anything allowed in Libre-Office (units, percent, and "auto"). However, the current import into LibreOffice is buggy, so it doesn't work as specified exactly. The proper usage in USFM should be relative only, as that doesn't require many tweaks for different outputs (that is a percentage of the placement argument (col, span, inline). Col and span are relative to the width, whereas inline is relative to the text height.
The text was updated successfully, but these errors were encountered:
I long time ago I suggested there are multiple use cases for the fig tag, and requested a slight expansion of the official \fig ... \fig* definition to cover these use cases.
I've implemented the following uses from a fork of USFM 2.4, but It would be nice if the current USFM spec included these arguments: inline, relative x-dim and y-dim, and wrap
My implementation:
Example SFM
Example Output
Project folder with images
**Notes
wrap is currently implemented on the preceeding paragraph. It more appropriately deserves a boolean (true/false) argument within the tag. I've implemented this way to acheive the closest representation with current USFM implementation.
x-dim and y-dim are currently passed directly through to Libre-Office, so current values are anything allowed in Libre-Office (units, percent, and "auto"). However, the current import into LibreOffice is buggy, so it doesn't work as specified exactly. The proper usage in USFM should be relative only, as that doesn't require many tweaks for different outputs (that is a percentage of the placement argument (col, span, inline). Col and span are relative to the width, whereas inline is relative to the text height.
The text was updated successfully, but these errors were encountered: