Giter Club home page Giter Club logo

Comments (2)

schierlm avatar schierlm commented on May 23, 2024

Thank you for your report.

First, you are using USFM export filter but a .usx file extension, but that was probably just a mistake.

I am not sure what the desired outcome is for you (i.e. how you would expect the program to behave instead). There are obviously situations where Bible formats have features that can not (with acceptable effort) be mapped to other Bible formats, and warnings are there to tell you when this happens to give an indication where you may improve the quality by manually editing the input file, an intermediary Roundtrip file or the output file.

Do you want an option to not show such warnings, or to count/tally them instead of printing them when they are encountered? Or are the warnings unclear and need better wording? Or do the warnings result in a suboptimal output file and you want to suggest how conversion could have been improved here?

For the first warning, WARNING: Raw HTML is not supported: MyBible SQLite format can embed arbitrary HTML inside of footnotes and introduction texts. Your example module includes Facebook links, ordered lists with various CSS, etc. Only a very limited set of tags are converted to actual Bible format features, all the othe tags are stored as "Raw HTML" in the output format. If the destination format also supports Raw HTML, these information can be preserved that way. USFM/USX, on the other hand, does not support any HTML, so it can only export the tags which are supported. Raw HTML Tags will get stripped, but the text content will be preserved. I do not have plans to increase the number of HTML tags that can be converted, so in case there is anything important in the input HTML, I'd suggest to edit either in the source format or in an intermediate Roundtrip format.

The second warning is about a Formatting tag with custom CSS, which has no output mapping for USFM. The tag originally was a <n> tag in MyBible.Zone, and proably it would be a good idea to map it to \add USFM tag here. I will be improving this by matching this to \add, and also add a fuzzy matcher, so that if there was no exact mapping, it would find the italic and make it an \it tag instead. This can also be done manually in the Bible file, or by using the OptimizeFormatting option of StrippedDiffable, e.g.

OptimizeFormatting 'C=font-style: italic; myBibleType=note->F=ITALIC'

To replace all custom formatting with the given CSS by Italic formatting.

In both cases, the resulting file should be usable without any postprocessing, if you can live with the non-optimal tagging.

from biblemulticonverter.

schierlm avatar schierlm commented on May 23, 2024

Closing for inactivity. Feel free to reopen in case anything is still open for you.

from biblemulticonverter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.