Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Recognizing Perl in text

by Anonymous Monk
on Jan 06, 2011 at 17:29 UTC ( [id://880885]=note: print w/replies, xml ) Need Help??


in reply to Re: Recognizing Perl in text
in thread Recognizing Perl in text

I am working on technical documents in general. Man pages happen to be a particular example that I (and you) are quite familiar with. Sure, the source of the man page as POD is easy to pick these out from. Compiled man pages, or man translated to HTML, LaTeX or PDF would not have the POD markers in it any more. But a person can also find Perl in engineering and science articles, and POD won't be present there. We might see text similar to: "The following Perl program will ..." in the text, which at least tells us that Perl is present in the document.

But I want to take out the jargon (Perl in this instance), so that I can analyze the prose. At a minimum for spelling.

Replies are listed 'Best First'.
Re^3: Recognizing Perl in text
by LanX (Saint) on Jan 06, 2011 at 18:53 UTC
    > Compiled man pages, or man translated to HTML, LaTeX or PDF would not have the POD markers in it any more

    Multiline code in POD has only one markup: indentation!

    Generated man pages mirror this.

    HTML and PDF additionally flag code with a dedicated style/font.

    So style and indentation are IMHO the by far best criteria for your scoring technique.

    And LaTeX ...You want to parse LaTeX-Code? Seriously?

    Cheers Rolf

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://880885]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-26 00:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found