Skip to content

Commit

Permalink
MIT notice on @kmadathil scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
drdhaval2785 committed Mar 26, 2017
1 parent 8c98923 commit ac7981c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions run_epub.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Copyright 2017 Karthikeyan Madathil
# Released under MIT licence. See LICENCE.txt.

INFILE=docs/sk.html
OUTFILE=docs/sk.epub
ebook-convert $INFILE $OUTFILE --insert-blank-line --chapter "//h:h2" --chapter-mark "both" --level1-toc "//h:h2" --use-auto-toc --authors "Bhattoji Dikshita" --author-sort "Bhattoji Dikshita" --comments "Automatically generated from XML file: https://github.com/drdhaval2785/siddhantakaumudi" --language Sanskrit --title "Siddhanta Kaumudi" --max-toc-links 100
2 changes: 2 additions & 0 deletions run_xslt.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

# Copyright 2017 Karthikeyan Madathil
# Released under MIT licence. See LICENCE.txt.

function run_xslt {
xsltproc --debug --output $OUTFILE --encoding $ENCODING $XSLT $INFILE
Expand Down
23 changes: 23 additions & 0 deletions sk_html.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,29 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:regexp="http://exslt.org/regular-expressions">

<!--MIT License
Copyright (c) 2017 Karthikeyan Madathil
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-->

<!-- Using the Muenchian method to group vArtikas and paribhaShAs (q.v)-->
<xsl:key name="vartika" match="t:div[@type='vārtika']" use="normalize-space(.)" />
<xsl:key name="paribhasha" match="t:div[@type='paribhāṣā']" use="normalize-space(.)" />
Expand Down

0 comments on commit ac7981c

Please sign in to comment.