View Single Post
Old 10-10-2023, 04:32 AM   #7
Leonatus
Wizard
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 1,060
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
Windows 10, 64 bit, PageEdit v. 2.0.0., Kobo Clara 2E.
In order to study a language (in this case Portuguese), I use the annotation function of my reader, fetch the annotations with the Calibre (v. 6.28) plugin Annotations (v. 1.17.13) that collects them to the metatadata field of the book I'm reading. From there, I copy them via PageEdit to my vocabulary book in Sigil (v. 2.0.1). That worked very well until today, as the annotations were inserted with the whole formatting, something like that:
Code:
<table border="0" width="100%" cellspacing="2" cellpadding="0" bgcolor="#d3d3d3" style="white-space: normal;">
                                                                              <tbody>
                                                                                 <tr>
                                                                                    <td bgcolor="transparent">
                                                                                       <p style="margin: 0px;"><strong style="background-color: transparent;">XIV</strong></p>
                                                                                    </td>

                                                                                    <td bgcolor="transparent">
                                                                                       <p align="right" style="margin: 0px;"><strong style="background-color: transparent;">08.10.2023 21:55:55</strong></p>
                                                                                    </td>
                                                                                 </tr>
                                                                              </tbody>
                                                                           </table>

                                                                           <span style="white-space: normal;"> </span>

                                                                           <p style="white-space: normal;">car*pir</p>

                                                                           <span style="white-space: normal;"> </span>

                                                                           <p style="white-space: normal; font-style: italic;">Beweinen, aushacken</p>
<p style=""><span style="font-style: italic; white-space: normal;">*</span>
Then, I updated PageEdit to v. 2.0.0, and now, at inserting the copied annotations to my Sigil ebook, all formatting is left away, and only the text is being inserted, which looks like that (in Sigil CodeView):
Code:
<i>XIV
09.10.2023 22:29:31

no*me*a*da
Ruf

XIV
09.10.2023 22:31:53

tras*te, o
Möbel, Gerät, Gauner

XIV
09.10.2023 22:34:45

em*pe*nho
Bemühung, Interesse

XIV
09.10.2023 22:35:50

gru*ta
Grotte

XIV
09.10.2023 22:40:54

pe*nu*gem, a
Flaum</i>
However, at the end of the book's section, there are lots of formatting tags, but only concerning the italic and whitespace format, like this:
Code:
p style=""><i> </i><span style="white-space: normal;"><i><br/></i></span></p>

                                                                           <span style="white-space: normal;"> </span>
                                                                        </div>

                                                                        <span style="white-space: normal;"> </span>
                                                                     </div>

                                                                     <span style="white-space: normal;"> </span>
                                                                  </div>

                                                                  <span style="white-space: normal;"> </span>
                                                               </div>

                                                               <span style="white-space: normal;"> </span>
                                                            </div>

                                                            <span style="white-space: normal;"> </span>
                                                         </div>

                                                         <span style="white-space: normal;"> </span>
                                                      </div>

                                                      <span style="white-space: normal;"> </span>
                                                   </div>

                                                   <span style="white-space: normal;"> </span>
                                                </div>

                                                <span style="white-space: normal;"> </span>
                                             </div>

                                             <span style="white-space: normal;"> </span>
                                          </div>

                                          <span style="white-space: normal;"> </span>
                                       </div>

                                       <span style="white-space: normal;"> </span>
                                    </div>

                                    <span style="white-space: normal;"> </span>
                                 </div>
and so on (there are really lots of such tags). Should it remain like this, PageEdit were of absolutely no use to me, but I suppose there is a trick in the settings (only that I can't find it). Help, please!

Edit: Now, I checked the "Use prettify to reformat xhtml when saving" button, and it became slightly better, as there are at least paragraphs inserted and formatted in italics. But the former table formatting has vanished.

Last edited by Leonatus; 10-10-2023 at 05:01 AM.
Leonatus is offline   Reply With Quote