Re: [racket-users] ssax:make-parser

2018-05-19 Thread N. Raghavendra
At 2018-05-16T23:47:29+05:30, N. Raghavendra wrote: > At 2018-05-16T13:49:52-04:00, John Clements wrote: > >> Would you (N. Raghavendra) be interested in taking the raw >> pseudo-documentation currently provided for ssax:make-parser and >> reformatting it into s

Re: [racket-users] ssax:make-parser

2018-05-17 Thread N. Raghavendra
n't understand XInclude, and seems to deal with inclusions using external parsed general entities, which is perhaps a bit dated at this stage of XML usage. It may be best to adapt the good parts of SXML, and build a well-maintained and modern XML toolkit for Racket, without bothering about portability t

Re: [racket-users] ssax:make-parser

2018-05-17 Thread N. Raghavendra
However, I will need guidance from the experts. Also, before beginning on such an exercise, perhaps one should consider the suggestions in Neil Van Dyke's recent message. I'll reply to that separately. Raghu. -- N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/ Harish-Chandra R

Re: [racket-users] Unicode identifiers

2018-05-17 Thread N. Raghavendra
tion. Raghu. PS: Just migrated to racket-mode from geiser, so will ask here if I have any queries there. Thanks for the mode too! -- N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/ Harish-Chandra Research Institute, http://www.hri.res.in/ -- You received this message becau

Re: [racket-users] ssax:make-parser

2018-05-17 Thread N. Raghavendra
I am fine with importing ssax separately in my files. I just thought that it is good to keep a record of its useful identifiers. Raghu. -- N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/ Harish-Chandra Research Institute, http://www.hri.res.in/ -- You received this mess

Re: [racket-users] ssax:make-parser

2018-05-16 Thread N. Raghavendra
isting quasi-documentation for ssax.rkt, make-parser was > the only one that looked to me like it might productively be used from > outside. Sure, I guess that's for the best. Raghu. -- N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/ Harish-Chandra Research Institut

Re: [racket-users] Unicode identifiers

2018-05-16 Thread N. Raghavendra
quot; "→"))) (require racket/require (for-syntax 'syntax-transform)) (require (filtered-in arrow-beautify racket)) -- Running this file in Dr Racket, I get > (string→symbol "map") 'map I get the same in Emacs/Geiser with `geiser-mode-switch-to-repl-and-

Re: [racket-users] ssax:make-parser

2018-05-16 Thread N. Raghavendra
;)) > Would you (N. Raghavendra) be interested in taking the raw > pseudo-documentation currently provided for ssax:make-parser and > reformatting it into something useful, perhaps with an example? Would > you (N. Raghavendra) be interested in taking the raw > pseudo-documentation c

Re: [racket-users] Unicode identifiers

2018-05-16 Thread N. Raghavendra
form-right-arrow require-spec)])) > > ;; Using it: > > (require (transform-right-arrow-in racket/base)) > > (symbol→string 'blubber) Thanks, this works. However, at this stage of my experience with Racket, the direct `filtered-in' method suggested by Jens appears simpler and ea

Re: [racket-users] Unicode identifiers

2018-05-16 Thread N. Raghavendra
ifier ... racket@> (require racket/string) racket@> (require (filtered-in (λ (name) (string-replace name "->" "→")) racket)) string-replace: undefined; cannot reference undefined identifier ... Wonder what I

[racket-users] Unicode identifiers

2018-05-15 Thread N. Raghavendra
→' as equivalent to '->' in identifiers? Then, I can use > (string→symbol "map") instead of > (string->symbol "map") Thanks, Raghu. -- N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/ Harish-Chandra Research Institute, http://www.hri.res.in/

Re: [racket-users] sxml:document

2018-05-15 Thread N. Raghavendra
At 2018-05-14T11:40:05+05:30, N. Raghavendra wrote: > I'll update my installation of the package after a few hours. Sorry, I missed this. I had updated my installation of the package after a couple of hours on that day, and sxml:document works as expected, for local file URLs. HTTP U

Re: [racket-users] ssax:make-parser

2018-05-15 Thread N. Raghavendra
At 2018-05-15T17:36:44-04:00, John Clements wrote: > Interestingly, it looks like this change is a deliberate one, made by > Ryan Culpepper back in 2011. Here’s the relevant commit: Thanks for tracing that change. Raghu. -- N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts

[racket-users] ssax:make-parser

2018-05-15 Thread N. Raghavendra
an important function, and I was wondering why the sxml module does not provide it, the way it does ssax:xml->sxml, so that one doesn't need to further require sxml/ssax/ssax. I see that sxml provides ssax:multi-parser. Is it similar to ssax:make-parser? Thanks, Raghu. -- N. Raghavendra

Re: [racket-users] sxml:document

2018-05-14 Thread N. Raghavendra
re’s a build error (entirely possible). Thanks very much. I'll update my installation of the package after a few hours. Raghu. -- N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/ Harish-Chandra Research Institute, http://www.hri.res.in/ -- You received this message because

Re: [racket-users] sxml:document

2018-05-13 Thread N. Raghavendra
--- > (call-with-input-file "/tmp/test.xml" (lambda (in) (ssax:xml->sxml in '( '(*TOP* (*PI* xml "version=\"1.0\" encoding=\"utf-8\"") (http://www.w3.org/1999/xhtml:html ... > -- Raghu. -- N. Raghavendra <ra...@hri.res.in>, http:

[racket-users] sxml:document

2018-05-13 Thread N. Raghavendra
mp/test.xml" #f although the file exists. I have tried file://tmp/test.xml file://localhost/tmp/test.xml file://localhost//tmp/test.xml etc., but none of them is working. I'd appreciate any help. Thanks, Raghu. -- N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/ Harish-