LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Transform HTML to LQ markup or -down

Posted 10-13-2018 at 05:37 AM by Michael Uplawski
Updated 11-10-2018 at 12:32 AM by Michael Uplawski

Again, I have written a XSL stylesheet.

This time, it serves me to facilitate writing posts and blog entries, here on LinuxQuestions.org, by transforming HTML to the markdown-syntax supported by LQ.

Taken the html-version of a man-page, like for HTML2Index, which is generated automatically alongside the other file-formats (PDF and man), I can call an xsltprocessor, like xsltproc with the new stylesheet and get a text-version of the HTML-page, ready to be copied&pasted...
Attached Files
File Type: txt html2lq.xsl.txt (4.9 KB, 9 views)
Senior Member
Views 308 Comments 2 Michael Uplawski is offline
Old

Word-definitions on the command-line

Posted 09-30-2017 at 02:31 AM by Michael Uplawski
Updated 07-08-2021 at 11:24 AM by Michael Uplawski (Script with xpath or css, wording and commas.)

Updates:
  • 27.4.2020 - An expression which is appended as request-parameter to an URL (or other URI) must be encoded. The original script assumes that this has been done beforehand. At the end of this blog-entry, I show a ruby-script which does the encoding.
  • The curl command should be used with the option -L or --location. I noticed that Larousse reacts to my requests but a browser is redirected (“301 Moved Permanently”) to an URL, where the request-parameters are modified to include a
...
Attached Images
File Type: png sc_define.png (29.9 KB, 34 views)
File Type: png th_sc_define.png (11.7 KB, 158 views)
File Type: png sc_larousse_definir.png (49.5 KB, 8 views)
Attached Files
Senior Member
Views 296 Comments 0 Michael Uplawski is offline
Old

Generate a glossary from HTML

Posted 09-09-2017 at 06:34 AM by Michael Uplawski
Updated 08-11-2023 at 02:28 AM by Michael Uplawski (list format, formating and outlook)

HTML2INDEX

Install as a ruby-gem:
Code:
:~$ gem install html2index
Read the RDOC : http://www.rubydoc.info/gems/html2index/1.1

This program creates an index or glossary of marked expressions in a HTML-file

The current man-page is here:

--------------------------

HTML2Index


Creates an index or glossary of marked expressions in an HTML-file
...
Senior Member
Views 365 Comments 1 Michael Uplawski is offline
Old

Paradigms exist to be broken

Posted 10-29-2016 at 12:39 AM by Michael Uplawski
Updated 11-16-2016 at 05:02 PM by Michael Uplawski (typos, Kraut2English)

Paradigms exist to be broken
or:
How to create a Dynamic bookmark-tree with Apache-FOP

Introduction
This page will eventually explain how you can dynamically generate a bookmark-tree in the PDF-documents by use of the Apache-FOP xsl/fo processor.

But before I show you the mere technicalities, you need to realize what's special in this procedure and what it means to break a paradigm. In fact, the alternative titles on this page should appeal to
...
Attached Images
File Type: pdf fop_bookmarks.pdf (66.5 KB, 10 views)
Attached Files
Senior Member
Views 309 Comments 2 Michael Uplawski is offline

  



All times are GMT -5. The time now is 05:50 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration