-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revised some properties of some markers within the AI_USFM.xml contro…
…l file. Changed the \xt marker to have userCanSetFilter="1" since can be a stand-alone marker that can be filtered. Hence, \xt now has its own entry in the Doc's filter list in the UsfmFilteringPage. Also set the inform="1" and navigationText to a suitable abbreviation for the table-related markers that previously had inform="0". This helps to identify those markers for texts that have substantial numbers of empty markers. Revised the filtering apparatus in the filterPage to allow for the \xt marker to serve its dual purpose in Usfm3 - that of an embedded marker within an \x ...\x* span and also as a stand-alone attribute marker that requires a vertical bar to delimit hidden information. This also required some changes to the App's DoUsfmFilterChanges() function to enable the \xt markers double role. It also required changes to some helpers.cpp functions including the RemoveFilterMarkerFromString() and AddFilterMarkerToString(). For better organization, a few fast-access strings that were held on the Doc have been moved to the App to join the group of other fase access markers. When they were on the Doc, there were not updated properly with certain markers they should have had. To get the unfiltering code to work properly I needed to remove the if (bIsFirstNode) block from the bUnfilteringRequired block in the Doc. Also, I reinstated a block of code - with revisions - to remove filtered info from the last word of a merged source phrase when the filtered information on the top level source phrase is unfiltered. The previous code was able to filter and unfilter the fig marker, but wasn't able to handle adequately the other attribute markers such as \jmp, and free-standing \xt that also contain bar delimited data. That issue has been fixed, but there is still more work to do before the filtering routines can re-filter some attribute markers after previously unfiltering them.
- Loading branch information
Showing
9 changed files
with
1,710 additions
and
1,007 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.