Bug 76014 - Writer: Hyphenation dashes seem misplaced dependent on default printer on LO launch
Summary: Writer: Hyphenation dashes seem misplaced dependent on default printer on LO ...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.1.1 release
Hardware: Other Windows (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-11 07:47 UTC by a07cd040897db54e103c
Modified: 2017-03-09 14:19 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
A test document. (47.86 KB, application/vnd.oasis.opendocument.text)
2014-03-11 07:47 UTC, a07cd040897db54e103c
Details
A screenshot of the print preview dialog showing the hyphenation dashes. (533.44 KB, image/png)
2014-03-11 07:53 UTC, a07cd040897db54e103c
Details

Note You need to log in before you can comment on or make changes to this bug.
Description a07cd040897db54e103c 2014-03-11 07:47:25 UTC
Created attachment 95578 [details]
A test document.

We experienced the following issue on Windows Server 2003 x64 with printers connected from a W2k8 printserver. Also reproduced on WinXP.

*Independent* of the default printer, the print preview (see attachment) shows partially large spaces between the last letter in a line and the hyphenation dash. If the document is printed, the dashes on the paper are placed *directly* following the last letter (this is what i would the printout expect to be). You might now think this is only a display error.

But if the default printer on LO launch is a "HP DeskJet 920c" and in the print dialog "File -> Print" *ANOTHER* printer is selected, then the printout shows the same irregular large spaces between last letter and dash as the preview shows.

If the "HP DeskJet 920c" is also uses for printing then the dashes are placed correctly. So the problem only occurs if the "HP DeskJet 920c" is default printer on LO launch and then another printer is used for printing.

My guess is, that after selecting another printer some kind of re-rendering the dashes is missing.
Comment 1 a07cd040897db54e103c 2014-03-11 07:53:15 UTC
Created attachment 95579 [details]
A screenshot of the print preview dialog showing the hyphenation dashes.
Comment 2 Jean-Baptiste Faure 2014-05-01 16:32:50 UTC
I think that the problem may come from the language chosen for the printer. On my onw printer, if I choose postscript instead of PDF, it works better from this point of view.
Please, could you test on your side ?

Best regards. JBF
Comment 3 a07cd040897db54e103c 2014-05-07 15:21:31 UTC
(In reply to comment #2)

Hello JBF,

> I think that the problem may come from the language chosen for the printer.

Indeed, this is a point I did not take into consideration. I will take care on this.

> On my onw printer, if I choose postscript instead of PDF, it works better
> from this point of view.
> Please, could you test on your side ?

What language setting do you mean? Printer driver language (then the GUI language or the communication language?) oder somewhere in LO settings?
Do you mean "PCL" instead of "PDF"?

On the "HP DeskJet 920c" driver I neither can see any option to choose the printer language nor a hint on what language is actually used.

Any idea how to find out?

In the meantime I also experienced the same behaviour with other printers too (but not all. Always when printer X is default printer on LO launch and in print dialog printer Y is used for printing.

Combination 1:

  X: Printer      : "HP DeskJet 920c",
     Drivername   : "hp deskjet 920c",
     Driverversion: 6.1.7233.0,
     Language     : <unknown>

  Y: Printer      : "Toshiba e-Studio 2540cse",
     Drivername   : "TOSHIBA Universal PS3",
     Driverversion: 7.106.3048.0,
     Language     : PS3


Combination 2:

  X: Printer      : "Brother HL-1240",
     Drivername   : "Brother HL-1240",
     Driverversion: 6.1.7233.0,
     Language     : <unknown>

  Y: Printer      : "Toshiba e-Studio 255",
     Drivername   : "TOSHIBA Universal PS3",
     Driverversion: 7.106.3048.0,
     Language     : PS3
Comment 4 Jean-Baptiste Faure 2014-05-07 19:50:32 UTC
To select the "Printer language type" I do what follows:
1/ choose the LibreOffice dialog for print dialog : Menu Tools > Options > LibreOffice > General
2/ In menu File > Print > Tab General -> click the Properties button then choose the tab Device

Best regards. JBF
Comment 5 a07cd040897db54e103c 2014-05-08 10:15:01 UTC
(In reply to comment #4)

To avoid misunderstandings: I'm talking about LO 4.2.3.3 on Windows, not Linux. Do you also talk about Windows?

> To select the "Printer language type" I do what follows:
> 1/ choose the LibreOffice dialog for print dialog : Menu Tools > Options >
> LibreOffice > General

There the option name says: "Open/Save dialogs" and for what i can see it does exactly what ist says - only change the dialogs for fileopen and filesave. I *cannot* find any option "LibreOffice dialog for print dialog".

> 2/ In menu File > Print > Tab General -> click the Properties button

On Windows this action opens the dialog, that is created by the *printer driver* so the settings, tabs and options you see vary between printers and driver versions.

> then choose the tab Device

For my printer/driver/version neither a tab "Device" is displayed nor can i find an option to change the language elsewhere.

What printer/driver/version are you talking about?
Comment 6 Jean-Baptiste Faure 2014-05-08 21:09:51 UTC
(In reply to comment #5)
> 
> To avoid misunderstandings: I'm talking about LO 4.2.3.3 on Windows, not
> Linux. Do you also talk about Windows?

Linux
> 
> > To select the "Printer language type" I do what follows:
> > 1/ choose the LibreOffice dialog for print dialog : Menu Tools > Options >
> > LibreOffice > General
> 
> There the option name says: "Open/Save dialogs" and for what i can see it
> does exactly what ist says - only change the dialogs for fileopen and
> filesave. I *cannot* find any option "LibreOffice dialog for print dialog".

You probably need to activate Experimental functions in menu Tools > Options > LibreOffice > Advanced

Best regards. JBF
Comment 7 a07cd040897db54e103c 2014-05-09 15:05:21 UTC
(In reply to comment #6)

> Linux

OK, maybe this explains differences.

> You probably need to activate Experimental functions in menu Tools > Options
> > LibreOffice > Advanced

In case you meant "Enable experimental features", i dit so. But this had neither an effect on the still missing option "Printer language type" nor on the options displayed when clicking the tab "General" and button "Properties..."

I think you should test this yourself also using windows.
Comment 8 Buovjaga 2014-11-24 11:26:05 UTC
I can confirm that in the print preview window for Adobe PDF printing (default printer), I get the same effect as in the screenshot attachment 95579 [details].
But when I print to PDF, the hyphens are ok like in the document.

Previewing a physical printer (HP Laserjet 700 MFP M775), the hyphens are drawn too much to the left, going a bit over the letters.

I will boldly go and set this to NEW.

Win 7 64-bit Version: 4.5.0.0.alpha0+
Build ID: 772befa08f02b08da1ab493896a0744bc73781c7
TinderBox: Win-x86@51-TDF, Branch:MASTER, Time: 2014-11-23_22:39:02
Comment 9 Buovjaga 2014-11-24 11:26:39 UTC
Severity should not be major, so changing. Check this chart: https://wiki.documentfoundation.org/images/0/06/Prioritizing_Bugs_Flowchart.jpg
Comment 10 QA Administrators 2015-12-20 16:08:51 UTC Comment hidden (obsolete)
Comment 11 a07cd040897db54e103c 2016-08-10 08:56:16 UTC
Tested the attached document (attachment 95578 [details]) with LO 5.1.5.2 (x64) on Windows 7:
The behaviour is the same with *any* of our available printers (different Brothers, different HPs, different Toshibas). Sadly the HP DeskJet 920c does not exist any more so that i was unable to test with this particular device.

The above lets me now conclude, that while creating the original test document, some special (erroneous) information that came from the printer/driver was stored into the document.

IMHO storing default printer/driver related information into a document should never be the case.

I was unable to test if the supposed storing of printer/driver information is still the case on newly created documents with LO 5.1.5.2 (x64).
Comment 12 a07cd040897db54e103c 2017-03-09 14:19:47 UTC
setting WORKSFORME due to having never experienced this bug in the last 4 tested versions.

latest was
Version: 5.1.4.2 (x64)
Build-ID: f99d75f39f1c57ebdd7ffc5f42867c12031db97a
CPU-Threads: 2; BS-Version: Windows 6.1; UI-Render: Standard; 
Gebietsschema: de-DE (de_DE)