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

Paragraph closed without closing style when creating pagenums #35

Open
NPavie opened this issue Dec 11, 2023 · 2 comments
Open

Paragraph closed without closing style when creating pagenums #35

NPavie opened this issue Dec 11, 2023 · 2 comments
Assignees

Comments

@NPavie
Copy link
Contributor

NPavie commented Dec 11, 2023

The following exception was reported by the saveAsDaisy addin while converting a document to dtbook xml

Report

An error occured while converting a document to dtbook XML :
La balise de début 'bdo' sur la ligne 2 à la position 287392 ne correspond pas à la balise de fin de 'pagenum'. Ligne 2, position 287427.

à Daisy.SaveAsDAISY.Conversion.Converter.Convert(DocumentParameters document, Boolean applyPostProcessing) dans F:\Nextcloud\Devs\word-save-as-daisy\Common\DaisyConverterLib\Converter.cs:ligne 337
à Daisy.SaveAsDAISY.Addins.Word2007.Connect.ApplyScript(Script pipelineScript, IConversionEventsHandler eventsHandler, ConversionParameters conversionIntegrationTestSettings) dans F:\Nextcloud\Devs\word-save-as-daisy\Word2007\DaisyWord2007AddIn\Connect.cs:ligne 755 - Inner exception : La balise de début 'bdo' sur la ligne 2 à la position 287392 ne correspond pas à la balise de fin de 'pagenum'. Ligne 2, position 287427.

à Daisy.SaveAsDAISY.Conversion.Converter.Convert(DocumentParameters document, Boolean applyPostProcessing) dans F:\Nextcloud\Devs\word-save-as-daisy\Common\DaisyConverterLib\Converter.cs:ligne 337
à Daisy.SaveAsDAISY.Addins.Word2007.Connect.ApplyScript(Script pipelineScript, IConversionEventsHandler eventsHandler, ConversionParameters conversionIntegrationTestSettings) dans F:\Nextcloud\Devs\word-save-as-daisy\Word2007\DaisyWord2007AddIn\Connect.cs:ligne 755

Details

Addin version - 2.8.0.0

@NPavie NPavie self-assigned this Dec 11, 2023
@NPavie NPavie changed the title La balise de début 'bdo' sur la ligne 2 à la position 287392 ne correspond pas à la balise de fin de 'pagenum'. Ligne 2, position 287427. bdo begining tag does not match pagenum ending tag Dec 11, 2023
NPavie added a commit to NPavie/word-save-as-daisy that referenced this issue Dec 19, 2023
Refactored the conversion of bidirectionnal text:
- Treating bdo element as inline other inline tag
- Checking for w:bidi or w:rtl informations in text runner properties to add bdo elements

Also:
- Changed default plugin settings for more optimal default notes positionning in result
- Starting to remove document name and path in exception report
@NPavie
Copy link
Contributor Author

NPavie commented Jan 8, 2024

New report with another file tested :

An exception was reported by the saveAsDaisy addin.

  • Addin Version: 2.8.2.0
  • Running Architecture: x64
  • OS: Microsoft Windows 10.0.22621
  • User or system wide install: user
  • Addin settings:
<Settings><PageNumbers  value="Automatic" /><CharacterStyles value="False" /><ImageSizes value="resize" samplingvalue="96" /><Footnotes level="0" position="page" numbering="number" startValue="1" numberPrefix="" numberSuffix="" /><TTSConfig file="" /></Settings>

Conversion of single docx to dtbook XML: task crashed

  • Une ou plusieurs erreurs se sont produites.
  • Invalid XML error reported: La balise de début 'bdo' sur la ligne 2 à la position 39054 ne correspond pas à la balise de fin de 'p'. Ligne 2, position 39088.
  • Context before error token:
-IN"> </bdo><bdo dir="rtl" xml:lang="hi-IN">पड़ोसी</bdo><bdo dir="rtl" xml:lang="hi-IN"> </bdo><bdo dir="rtl" xml:lang="hi-IN">के</bdo><bdo dir="rtl" xml:lang="hi-IN"> </bdo><bdo dir="rtl" xml:lang="hi-IN">साथ</bdo><bdo dir="rtl" xml:lang="hi-IN"> </
  • Error token: p
  • Context after error token:
><pagenum page="normal" id="page2">2</pagenum><p></bdo><bdo dir="rtl" xml:lang="hi-IN">बातचीत</bdo><bdo dir="rtl" xml:lang="hi-IN"> </bdo><bdo dir="rtl" xml:lang="hi-IN">नहीं</bdo><bdo dir="rtl" xml:lang="hi-IN"> </bdo><bdo dir="rtl" xml:lang="hi-IN"
  • La balise de début 'bdo' sur la ligne 2 à la position 39054 ne correspond pas à la balise de fin de 'p'. Ligne 2, position 39088.

Stacktrace:

   à Daisy.SaveAsDAISY.Conversion.Converter.Convert(DocumentParameters document, Boolean applyPostProcessing)
   à Daisy.SaveAsDAISY.Addins.Word2007.Connect.ApplyScript(Script pipelineScript, IConversionEventsHandler eventsHandler, ConversionParameters conversionIntegrationTestSettings)
   à System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   à System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   à Daisy.SaveAsDAISY.Conversion.Converter.Convert(DocumentParameters document, Boolean applyPostProcessing)
   à Daisy.SaveAsDAISY.Conversion.Converter.<>c__DisplayClass37_0.<Convert>b__0()
   à System.Threading.Tasks.Task`1.InnerInvoke()
   à System.Threading.Tasks.Task.Execute()
   à System.Xml.XmlTextReaderImpl.Throw(Exception e)
   à System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag)
   à System.Xml.XmlTextReaderImpl.ParseEndElement()
   à System.Xml.XmlTextReaderImpl.ParseElementContent()
   à System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
   à System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
   à System.Xml.XmlDocument.Load(XmlReader reader)
   à System.Xml.XmlDocument.Load(String filename)
   à Daisy.SaveAsDAISY.Conversion.WordToDTBookXMLTransform.MergeDocumentInTarget(DocumentParameters documentToMerge, XmlDocument mergeTarget)

@NPavie NPavie changed the title bdo begining tag does not match pagenum ending tag Paragraph closed without closing style when creating pagenums Jan 8, 2024
@NPavie
Copy link
Contributor Author

NPavie commented Jan 8, 2024

@prashantverma2014 the problem regarding the file आज की खास खबरें 3 January 2024.docx has been identified will be fixed for next test release.

NPavie added a commit that referenced this issue Jan 9, 2024
…sertion

Also did a small cleanup by removing previous commented commands
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant