Bug 113967 - Some character are not formatted the same way in Writer and Linux terminal despite font used is monospaced and common in both of them.
Summary: Some character are not formatted the same way in Writer and Linux terminal de...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.4.3.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-21 09:44 UTC by ricky.tigg
Modified: 2017-11-22 16:41 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Copied (from Writer)/pasted into terminal, then a version with corrected character "'" (21.13 KB, image/png)
2017-11-21 09:44 UTC, ricky.tigg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ricky.tigg 2017-11-21 09:44:07 UTC
Created attachment 137886 [details]
Copied (from Writer)/pasted into terminal, then a version with corrected character "'"

LIbreoffice (help):
Version: 5.4.3.2
Build ID: 5.4.3.2-1.fc27
CPU threads: 2; OS: Linux 4.13; UI render: default; VCL: gtk3; 
Locale: en-GB (en_GB.UTF-8); Calc: group

Character (example) "'" is not formatted the same way in Writer and Linux terminal despite font used is monospaced and common in both of them.

Steps to reproduce:
1. Select a common font for both Writer and terminal used on Fedora 27 in your favourite environment (I used Gnome). The font I selected is from family Liberation Mono, styled in Regular, and sized 12.
2. Manually enter once in Writer following strings aimed to be copied and passed into terminal:

# Aliasten käyttöönotto
alias aliasko='source ~/.bashrc'

In terminal (as common user)
3. Edit hidden file /home/yk/.bashrc in your favourite editor (I used gedit),  copy/pass previous strings then save.
4. Enter commands:
$ source ~/.bashrc
$ alias

Actual result:
As noticeable, alias is not validated because part of the pasted text’s format is not valid, and consequently alias cannot be created. Character ”’” is presently the one involved in that issue (attachment – see string only in white and grey tones).

In terminal once  character ”’” is erased and entered now manually, as a result the string becomes now a valid one  (attachment – see string in white, grey, and orange tones).

Despite those strings look at first sight duplicated and then identical, except from the colour criteria, they are indeed distinct regarding their font format.
Comment 1 Buovjaga 2017-11-22 16:41:58 UTC
Tools - Autocorrect options - Localized options: untick "Replace" under Single Quotes