[NTG-context] Escaping reserved/problematic characters

2021-03-11 Thread Benct Philip Jonsson
In a program I'm writing I have a function for escaping characters which
are reserved or problematic in LaTeX. I would like to have a corresponding
function for ConTeXt, so I'm wondering which ones are
different/superfluous/missing from a ConTeXt perspective in the following
list (sorry about the formatting!):

'{': "\\{"
'}': "\\}"
'_': "\\_"
'%': "\\%"
'#': "\\#"
'$': "\\$"
'&': "\\&"
'`': "\\textasciigrave{}"
'^': "\\textasciicircum{}"
'~': "\\textasciitilde{}"
'\\': "\\textbackslash{}"
'|': "\\textbar{}"
'<': "\\textless{}"
'>': "\\textgreater{}"
'[': '{[}'
']': '{]}'

Note that I'm not looking for accented letters, Unicode quotes and dashes
etc. I'm assuming that people in the year 2021 are using an UTF-8-aware
engine (and my corresponding HTML escape function similarly caters only to
& < > " ').

TIA,

/Benct
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] PDF viewer poll

2019-10-16 Thread Benct Philip Jonsson

On 2019-10-14 18:55, Marcin Borkowski wrote:

Hi,

I don't use ConTeXt anymore, but I still get the emails from the list,
and I quickly skimmed throught this thread to see if someone writes
about my pdf-viewer of choice - pdf-tools
(https://github.com/politza/pdf-tools).



I too don't use context anymore[^1] but I thought I should mention 
Zathura which is a good alternative if you like vi(m) and/or 
dislike/have trouble using a GUI.[^2].  The WP page (and `man zathura`) 
describes its capabilities well without me needing to type them. :-) 
They include synctex but I don't use it.




[^1]: I never really took off with context because I already know how to 
do 9 out of 10 tasks in LaTeX, and when I don't the info is much easier 
to find online. Sorry!


[^2]: I have a motor disability which makes pointing with a mouse 
difficult and point-dragging almost impossible.  That's the main reason 
I got into text-only/plaintext/non-gui workflows, but I keep on because 
I find them better.  Unfortunately when computer accessibility is 
discussed it is almost synonymous with vision disability accessibility, 
but there are other reasons for having trouble with GUIs.




On 2019-10-13, at 12:43, Henning Hraban Ramm  wrote:


Hi, I’d like to update my list of (usable!) PDF viewers.
Which one do you use? (Current version?)


pdf-tools (version 20190701.202)


What are its pros and cons?


cons:
- no "continuous display"/"double page" modes

pros:
- searchable (also with regexen), also grep-like (i.e., display all
lines containing some regex and jump to them easily)
- annotations/comments are viewable (and jumpable to) w/o using the
mouse
- fast
- runs within Emacs (not sure if this is a "pro" for everyone...)


Is it free (open source, freeware)?


yes (GPL3)


Does it work on Win/Lin/Mac?


GNU/Linux, maybe Mac


Does it have a localized interface? (I don’t care, but I work with
people who don’t understand a lot of English.)


No.


Can it handle comments, attachments?


Yes.


Can it handle forms with or without JavaScript?


AFAIK, no.


Does it support SyncTeX? (Who uses that anyway?)


Yes, and I do all the time!


Does it update changed PDFs on its own (or does it even block
overwriting)?


I guess it can be configured to do so (like Emacs in general)


Which other features are essential for your choice?


As I said - I don't have to leave Emacs.  Also, incremental or grep-like
searching with literal text or regexen are killer features.

Best,

--
Marcin Borkowski
http://mbork.pl
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___