ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: spanish symbols for interrogation and exclamation
Date: Fri, 23 Dec 2005 10:06:15 +0100	[thread overview]
Message-ID: <43ABBE07.6030705@wxs.nl> (raw)
In-Reply-To: <6faad9f00512221844i48ab563cj4e0f0d1c22a26fcf@mail.gmail.com>

Mojca Miklavec wrote:

>Ciro Soto wrote:
>  
>
>>Hi team:
>>
>> How do I write the spanish interrogation symbol that is up-side down?
>> also
>> How do I write the spanish exclamation symbol that is also up-side down?
>> thank you
>> ciro
>>    
>>
>
>\enableregime[utf] % for utf-8, may be something else as well
>(depending on editor)
>\starttext
>You can write \exclamdown\ or � and \questiondown\ or �
>\stoptext
>  
>
that's not comfortable for spanish users, so ... let's hook it into 
specifics:

\starttext

\startlanguagespecifics[fr]
    \definetextmodediscretionary : 
{\removeunwantedspaces\prewordbreak\kern\hspaceamount\empty{:}:}
    \definetextmodediscretionary ; 
{\removeunwantedspaces\prewordbreak\kern\hspaceamount\empty{;};}
    \definetextmodediscretionary ? 
{\removeunwantedspaces\prewordbreak\kern\hspaceamount\empty{?}?}
    \definetextmodediscretionary ! 
{\removeunwantedspaces\prewordbreak\kern\hspaceamount\empty{!}!}
\stoplanguagespecifics

% goes to enco-ffr

\startlanguagespecifics[es]
    \definetextmodediscretionary ? {\prewordbreak\questiondown}
    \definetextmodediscretionary ! {\prewordbreak\exclamdown}
\stoplanguagespecifics

spanish|?| spanish|!|

\hyphenatedword{\es spanish|?|\relax}
\hyphenatedword{\es spanish|!|\relax}

\hyphenatedword{spanish|?|\relax}
\hyphenatedword{spanish|!|\relax}

\hyphenatedword{\fr spanish|?|\relax}
\hyphenatedword{\fr spanish|!|\relax}

\stoptext

\mainlanguage[es] Hey Mojca, does this look better|?|

(the |??| is always available)

i'll add this to the distribution

Hans

  reply	other threads:[~2005-12-23  9:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-23  2:15 Ciro Soto
2005-12-23  2:44 ` Mojca Miklavec
2005-12-23  9:06   ` Hans Hagen [this message]
2005-12-24 22:45     ` Ciro Soto
2005-12-25 15:44       ` Henning Hraban Ramm
2005-12-26 11:52         ` Hans Hagen
2005-12-26 20:24           ` Ciro Soto
2005-12-26  0:21       ` Mojca Miklavec

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43ABBE07.6030705@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).