More an issue of cutting and pasting text from a word processing doc for example Word or Pages

May 12, 2022,13:06 PM
 

For example in this particular post the original author wanted to highlight some text. This resulted in the following html formatting text in two separate different instances:  Note there is no content in this:


1)


strong style="margin: 0px; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; box-sizing: border-box; outline: 0px; color: #000000; font-family: HelveticaNeue, CustomHelveticaNeue, Arial, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: 1px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"


2)


 div  span style="color: #000000; font-family: HelveticaNeue, CustomHelveticaNeue, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"  br   /span   /div  div  p style="margin: 0px 0px 40px; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; box-sizing: border-box; outline: 0px; font-family: HelveticaNeue, CustomHelveticaNeue, Arial, sans-serif; font-style: normal; font-weight: 400; line-height: 20px; letter-spacing: 1px; color: #000000; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" 


in both of these the word processor has hard coded the text color to black  (#000000).  When the device enters night mode (black background) the text is rendered as black on black hence not visible.


This is extremely inefficient as the same two large formatting blocks of html could have been replaced with  strong  /strong   or  b   /b 

When pasting text in the browser there is a button that attempts to remove as much of the excess word formatting information as possible. It is this button 

remove_format_on.gif


We do try and catch some of these on the fly and attempt to override them in the app - however it is really difficult to catch all the possible permutations without corrupting the original text.



  login to reply

Comments: view entire thread

 

For Carl - iOS issue

 
 By: India Whiskey Charlie : May 5th, 2022-19:49
Same post, viewed on browser left and viewed on iOS app on right. As you can see, some text is missing when viewed on app. ...  

More an issue of cutting and pasting text from a word processing doc for example Word or Pages

 
 By: carl : May 12th, 2022-13:06
For example in this particular post the original author wanted to highlight some text. This resulted in the following html formatting text in two separate different instances: Note there is no content in this: 1) strong style="margin: 0px; padding: 0px; b...