11-12-2022, 07:54 PM | #16 |
Evangelist
Posts: 482
Karma: 2267928
Join Date: Nov 2015
Device: none
|
Both Word 2007+ and OpenOffice 3.x+ always use styles when you change the formatting. It is no longer needed to invent and apply styles manually.
|
11-12-2022, 08:44 PM | #17 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Direct Formatting still plagues the innards of these files. Very few people (<1%) learn to "Paste As Unformatted Text" + properly apply Styles to their documents. |
|
11-12-2022, 10:12 PM | #18 | |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
If you're referring to one of the other odt-specific plugins, I'll let their authors speak for those. Last edited by DiapDealer; 11-12-2022 at 10:15 PM. |
|
11-12-2022, 10:57 PM | #19 | |
Bibliophagist
Posts: 35,489
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
11-13-2022, 07:00 AM | #20 | |
the rook, bossing Never.
Posts: 11,166
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
Currently I'm on V 1.1.0 using QT 5.12.8. On starting it offered an upgrade and clicking that loaded https://sigil-ebook.com/sigil/download/ Except it doesn't exactly have a download for Linux. The version I have was from the Linux Mint 20.1 GUI Package Manager and hasn't been updated. However I have several programs I use that are direct installed from websites though on the Package Manager. Edit: I see I have zero plugins and "Add Plugin" opens the file browser. Edit 2: Can the docx plugin map image styles to user defined CSS so I have height: auto and width: whatever% or vice versa for portrait shape images? Currently I have to edit all CSS for images when I use that Program What Must Not Be Named here. Edit 3: Found the list of plugins, downloaded and installed DOCXImport and CSSFromFonts. Last edited by Quoth; 11-13-2022 at 07:11 AM. |
|
11-13-2022, 08:29 AM | #21 | |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Quote:
If your odt file uses proper styles, it will be very precisely converted. "defining style translations" on this regard is a useless step. There is no need for it. If you send me by MP a clean odt file (styles!), I can do a try for you. The result will be customized because of the use of my own settings (additional style-sheet, fonts, etc.) Last edited by roger64; 11-13-2022 at 08:38 AM. |
|
11-13-2022, 08:57 AM | #22 | |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Once Sigil-centric solutions have been exhausted without any joy, feel free to mention that what they want can be done with calibre. As to your second image-related question: are you talking about Word/docx styles applied to images? I was unaware you could apply text styles to images (with Word/LibreOffice). If you're talking about adding generic style classes to the resulting img tag that could be later styled, that might be easily doable. But the parsing of images within the plugin to generate "smart" CSS class attributes is probably not in the cards. All styles come from the docx text styles and are mapped to css classes by the user provided map. Last edited by DiapDealer; 11-13-2022 at 09:03 AM. |
|
11-13-2022, 11:44 AM | #23 | |
the rook, bossing Never.
Posts: 11,166
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
in <p style="stuff"> <img style="otherstuff"> etc </p> the outer text CSS applies, such as center. LO Writer "Styles and Formatting" navigator un-docked has styles for:
Frame (3) includes Graphics / Images styles as well as Formula and other stuff. If you click on an Image two additional toolbars appear (note I only have the the main menu on the editor window, so all tool bars/windows are floating. Right Click on an Image you get Image Properties via context menu. Under "Type" you can set the Size and Anchor (there are 10 option tabs). For docs, ebooks and PDFs I always anchor As character. I usually have each image in a separate paragraph that's Caption style (Center). An actual caption would be a new paragraph. If it's a selection of small images, then they are in the same paragraph and I'd make them the same height. On import to Calibre as Docx to epub, really annoyingly I only get the H & V pixels in the CSS. Setting a percent of paragraph or such doesn't work. The default Graphics Style in the main Style browser (when 3rd icon Frame is selected or an image is selected) obviously ought to be where each Style of image is configured via a New Style when it needs one. I have to say it's complicated and I may be doing it wrong. However the style/properties are exported, I checked with Word XP, Word 2003 (WINE others are on VMs) and Word 2007. Naturally reading in a docx saved by LO Writer messes up styles as it's a conversion. Also obviously the pixel size and anchor mode is correctly turned into HTML and CSS by Calibre. I'm a bit ferverish right now, but when better I'll try figuring how to set up the CSS maps for your plug in. Maybe I can copy CSS and HTML stuff from epubs made from LO Writer odts Saved As docx. Most documents for epub use the same template & styles. The docs to be exported as PDFs have loads of page styles, headers, footers, different margins and fonts for the same content. Also footnotes / references are done differently for epub and PDF. Last edited by Quoth; 11-13-2022 at 11:53 AM. |
|
11-13-2022, 11:49 AM | #24 |
the rook, bossing Never.
Posts: 11,166
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
|
11-13-2022, 12:32 PM | #25 |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Gotcha. Sorry. I just didn't want anyone thinking Calibre was taboo around here.
|
11-13-2022, 04:51 PM | #26 | |
Bibliophagist
Posts: 35,489
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
11-14-2022, 12:03 AM | #27 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
OK. Up to you.
It also good to know that LO allows to export directly from odt to ePub format. You'll get a correct code, a fine display, even with complex files, as long as you use styles. For my taste however, from somebody who uses the ePub format to fine tune the display, this code is a too complex to easily deal with. But it's just a matter of taste. |
11-14-2022, 02:41 AM | #28 |
Evangelist
Posts: 482
Karma: 2267928
Join Date: Nov 2015
Device: none
|
The LO Epub export is just a repack of its XHTML export, the lack of the whitespace included.
|
11-14-2022, 05:56 AM | #29 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
|
11-14-2022, 09:46 AM | #30 |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Sarmat's numerous one-sentence declarations are rarely the useful (let alone accurate) epiphanies they believe them to be.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Too many styles? | Ghitulescu | Calibre | 5 | 12-12-2014 03:19 PM |
Loss of styles from 0.5.3 to 0.6.2? | Rhynedahll | Sigil | 5 | 01-29-2013 09:36 PM |
<hr /> styles | trstill | Introduce Yourself | 1 | 05-30-2010 01:57 PM |
So many styles! | roger64 | Calibre | 3 | 03-21-2010 08:05 AM |
Wiki and styles | tribble | Feedback | 1 | 10-20-2006 05:46 AM |