Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Say "twenty-three-skiddoo" to logout.


computers / comp.text.tex / access to UTF-8 symbols in XeLaTeX

SubjectAuthor
* access to UTF-8 symbols in XeLaTeXDr Engelbert Buxbaum
`* Re: access to UTF-8 symbols in XeLaTeXUlrike Fischer
 `- Re: access to UTF-8 symbols in XeLaTeXDr Engelbert Buxbaum

1
access to UTF-8 symbols in XeLaTeX

<MPG.3e6e953381fa76979896ab@news.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6278&group=comp.text.tex#6278

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: engelbert_buxbaum@hotmail.com (Dr Engelbert Buxbaum)
Newsgroups: comp.text.tex
Subject: access to UTF-8 symbols in XeLaTeX
Date: Sun, 5 Mar 2023 12:02:56 +0100
Organization: private
Lines: 17
Message-ID: <MPG.3e6e953381fa76979896ab@news.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="14d097350b3ff3671d302b0f3ed6d541";
logging-data="1378827"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/jD0i4IHs+MSRc9K1FQ6TFfndPwhBd6+M="
User-Agent: MicroPlanet-Gravity/3.0.4
Cancel-Lock: sha1:IX7Zz9Cn+pjztQdJIPUlQm371JA=
 by: Dr Engelbert Buxbaum - Sun, 5 Mar 2023 11:02 UTC

Hi,

for a style-file that gives access to the alchemist symbols in UTF-8
under XeLaTeX I do:

\providecommand\AlchemistSalt{\fontspec{Symbola}\symbol{"1F714}} % NaCl
\providecommand\AlchemistNitre{\fontspec{Symbola}\symbol{"1F715}} % KNO3
....

Is it possible to define the font used only once, so that it would be
easier to switch to other suitable fonts (Quivira, EB-Garamond) if
desired?

Thanks in advance

Engelbert

Re: access to UTF-8 symbols in XeLaTeX

<fb0v22eth4xt.dlg@nililand.de>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6282&group=comp.text.tex#6282

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: news3@nililand.de (Ulrike Fischer)
Newsgroups: comp.text.tex
Subject: Re: access to UTF-8 symbols in XeLaTeX
Date: Mon, 6 Mar 2023 09:45:22 +0100
Lines: 28
Message-ID: <fb0v22eth4xt.dlg@nililand.de>
References: <MPG.3e6e953381fa76979896ab@news.eternal-september.org>
Reply-To: news3@nililand.de
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net n0nlxUgFemJMf0jBWz6VzgwqDXgX1DUdat9PgOSn8ro3sHHe2V
Cancel-Lock: sha1:A/+1YGta1M/KQu+8d+4dc4Vc6/o=
User-Agent: 40tude_Dialog/2.0.15.41de
 by: Ulrike Fischer - Mon, 6 Mar 2023 08:45 UTC

Am Sun, 5 Mar 2023 12:02:56 +0100 schrieb Dr Engelbert Buxbaum:

> Hi,
>
> for a style-file that gives access to the alchemist symbols in UTF-8
> under XeLaTeX I do:

Nitpicking: the symbols are in Unicode. UTF-8 is only an encoding
(there are others, e.g. UTF-16). And with "1F714 you are not using
something special to UTF-8, that would even work if you encode your
file in latin1, you are accessing the unicode code point.

>
> \providecommand\AlchemistSalt{\fontspec{Symbola}\symbol{"1F714}} % NaCl
> \providecommand\AlchemistNitre{\fontspec{Symbola}\symbol{"1F715}} % KNO3
> ...
>
> Is it possible to define the font used only once, so that it would be
> easier to switch to other suitable fonts (Quivira, EB-Garamond) if
> desired?

See \newfontface and \newfontfamily in the fontspec documentation.
(And your definition is missing braces and so will switch the font
also for the following text.)

--
Ulrike Fischer
http://www.troubleshooting-tex.de/

Re: access to UTF-8 symbols in XeLaTeX

<MPG.3e71d4ace9f271669896ac@news.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6303&group=comp.text.tex#6303

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: engelbert_buxbaum@hotmail.com (Dr Engelbert Buxbaum)
Newsgroups: comp.text.tex
Subject: Re: access to UTF-8 symbols in XeLaTeX
Date: Thu, 9 Mar 2023 08:37:55 +0100
Organization: private
Lines: 15
Message-ID: <MPG.3e71d4ace9f271669896ac@news.eternal-september.org>
References: <MPG.3e6e953381fa76979896ab@news.eternal-september.org> <fb0v22eth4xt.dlg@nililand.de>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="248cee8baa95b29d46a6bafaead8a072";
logging-data="1431830"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19HZNnjZv/tnSvPYYIYaH6iTEgZ2rzaMtg="
User-Agent: MicroPlanet-Gravity/3.0.4
Cancel-Lock: sha1:vX5c5Cj6FZ+bU0QOxWoU8B2xHQg=
 by: Dr Engelbert Buxbaum - Thu, 9 Mar 2023 07:37 UTC

In article <fb0v22eth4xt.dlg@nililand.de>, news3@nililand.de says...
>
> See \newfontface and \newfontfamily in the fontspec documentation.

I ended up with

\providefontfamily\Alchemist{Symbola}

\providecommand{\AlchemistSalt}{\Alchemist \symbol{"1F714}}
\providecommand{\AlchemistNitre}{\Alchemist \symbol{"1F715}}

> (And your definition is missing braces and so will switch the font
> also for the following text.)

So that is where all the error messages came from ;-)

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor