• Re: [gentoo-user] Firefox to LOCalc characterset translation

    From tastytea@21:1/5 to confabulate@kintzios.com on Mon Mar 28 00:10:01 2022
    On 2022-03-27 22:35+0100 Michael <confabulate@kintzios.com> wrote:

    I can't explain why the following cut 'n paste problem happens when I
    select some symbols within text in Firefox and then try to insert by middle-click in LibreOffice Calc.

    If I select the symbols for £ (GBP), or € (Euro) and middle click
    upon a cell in LOCalc, a window pops up asking "Select the Language
    to Use for Import". I leave it to "Automatic" which is the default
    setting and the symbol plus any text is pasted with the same format
    as the webpage. The symbols are then displayed correctly in LOCalc.

    However, if I enter a cell by double clicking on it, or by clicking
    in the edit bar, then middle click to enter the selection, both £ and
    € symbols are entered in some strange code - e.g. \u20ac

    I don't know why it is doing that or how to fix it, but the strange code
    is a unicode code point. You can enter it in many terminal emulators by pressing Control + Shift + u and then 20ac + Enter or display it with
    echo "\u20ac".

    Kind regards, tastytea

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tastytea@21:1/5 to confabulate@kintzios.com on Mon Mar 28 00:40:02 2022
    On 2022-03-27 23:13+0100 Michael <confabulate@kintzios.com> wrote:

    On Sunday, 27 March 2022 23:04:21 BST tastytea wrote:
    On 2022-03-27 22:35+0100 Michael <confabulate@kintzios.com> wrote:
    I can't explain why the following cut 'n paste problem happens
    when I select some symbols within text in Firefox and then try to
    insert by middle-click in LibreOffice Calc.

    If I select the symbols for £ (GBP), or € (Euro) and middle click
    upon a cell in LOCalc, a window pops up asking "Select the
    Language to Use for Import". I leave it to "Automatic" which is
    the default setting and the symbol plus any text is pasted with
    the same format as the webpage. The symbols are then displayed
    correctly in LOCalc.

    However, if I enter a cell by double clicking on it, or by
    clicking in the edit bar, then middle click to enter the
    selection, both £ and € symbols are entered in some strange code
    - e.g. \u20ac

    I don't know why it is doing that or how to fix it, but the strange
    code is a unicode code point. You can enter it in many terminal
    emulators by pressing Control + Shift + u and then 20ac + Enter or
    display it with echo "\u20ac".

    Kind regards, tastytea

    Hmm ... I wonder if my setup is wrong? This is what I get in UXterm
    and Konsole:

    $ echo "\u20ac"
    \u20ac

    Ah sorry, in bash that's echo -e "\u20ac". I was testing with zsh,
    where -e is enabled by default.

    My locale.gen contains "en_GB.UTF-8 UTF-8" so I naively assumed
    applications would be able to translate code into characters. Well,
    other applications do with LOCalc, but Firefox won't. :-/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Sun Mar 27 23:13:14 2022
    On Sunday, 27 March 2022 23:04:21 BST tastytea wrote:
    On 2022-03-27 22:35+0100 Michael <confabulate@kintzios.com> wrote:
    I can't explain why the following cut 'n paste problem happens when I select some symbols within text in Firefox and then try to insert by middle-click in LibreOffice Calc.

    If I select the symbols for £ (GBP), or € (Euro) and middle click
    upon a cell in LOCalc, a window pops up asking "Select the Language
    to Use for Import". I leave it to "Automatic" which is the default
    setting and the symbol plus any text is pasted with the same format
    as the webpage. The symbols are then displayed correctly in LOCalc.

    However, if I enter a cell by double clicking on it, or by clicking
    in the edit bar, then middle click to enter the selection, both £ and
    € symbols are entered in some strange code - e.g. \u20ac

    I don't know why it is doing that or how to fix it, but the strange code
    is a unicode code point. You can enter it in many terminal emulators by pressing Control + Shift + u and then 20ac + Enter or display it with
    echo "\u20ac".

    Kind regards, tastytea

    Hmm ... I wonder if my setup is wrong? This is what I get in UXterm and Konsole:

    $ echo "\u20ac"
    \u20ac


    My locale.gen contains "en_GB.UTF-8 UTF-8" so I naively assumed applications would be able to translate code into characters. Well, other applications do with LOCalc, but Firefox won't. :-/
    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmJA4XoACgkQseqq9sKV ZxmsNRAAyTHtUA2uCQEOF0qwrjThNS6u2R5qP01bRdQYFmuQ+3a3sSYnf68DkhXi CodgGRFoi3nA1X/2ZsuftGx62p45xyWVoBeu9thGTU45vqnV4NJUdT63Eb6DUWld SPRmnErBwoxKvumq4u976HCPyL9FJEh+QkTo1cmhQ63lZ+nlxVu2aX2uQ8udxSzk 34QZqK1D1q8FG+YQa5xxM4uj4V2XFz96UUI9n9cetw1uaWmn/p9l7m2AiRW2oLnW uxj0712DQ6FqsR5bPphvbZvkUkHbp8TX0zx8nxLQT1NbUNx9wMSwhc66P55pt7fM G9gJPro17c208vcGmoznzL632oAg611XXU/yn/v1nkHDSyfN6DWKbyf6ISii8ptb w1vNmbXDnruY3opxKiUblVzd9uhODB4iz+RDMgdRrQULjtyhFRQV2vLBTFBdpM4+ BrNL1qq0p1Q/ZdTkDlK4xe1UVcuBXWXzzUWyk9SEwO4zFUqfNyJBkj4ggmTL6W0j JHRnan0q+zyFt3MFO4MspgmUT5XqM73+kLiYuBbHv/kJPFgu9OoZYmhwY/B7mRfM DbQr+voYJng8tAt6Z9d/hPs6I3bbTmecMpOwmnkV64ALtp2g8Qj1wo8yg0tXhoR5 MzXi+fXXjCfH3P7pJmNSx/mtmunXZCiITzFKRm8kr9y06AhucbA=
    =tbVv
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)