View csv2table.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- http://jsfiddle.net/vHQwN/8/ --> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Convert CSV to Table</title> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> | |
<style> | |
/* CSS source: http://24ways.org/2009/have-a-field-day-with-html5-forms */ | |
html, body, h1, form, fieldset, legend, ol, li { |
View list2fotable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
It works with both simple list and unordered list. The output can be sorted across rows or columns. | |
The outputclass supports the number of columns and you can specify if you want it to be ordered vertically across rows or horizontally across columns. | |
Format: <number of columns>column(optional: _vert) | |
Examples: | |
3 column vertical sort – <sl outputclass=”3column_vert”> | |
2 column horizontal sort - <sl outputclass=”2column”> | |
You will need to define a "my" namespace in your stylesheet: |
View Test.dita
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!DOCTYPE glossentry PUBLIC "-//OASIS//DTD DITA Glossary//EN" "glossary.dtd"> | |
<glossentry id="glossentry_Test"> | |
<glossterm><keyword id="term_Test" >Test</keyword></glossterm> | |
<glossdef>Duplicate ID.</glossdef> | |
</glossentry> |
View Broken CALS table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> | |
<concept id="concept_s25_kyh_zh"> | |
<title>Broken CALS table</title> | |
<conbody> | |
<p> | |
<table id="table_3A860165B5A748A79B06028C4CE30C5A" > | |
<title>Broken Table</title> | |
<tgroup cols="12"> |
View findOrphans.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Find and optionally delete files that are not referenced from the ditamap as a topicref. | |
* Disclaimer: Not smart enough to look for keydef yet | |
*/ | |
// Set this to the relative (to where you're executing script from) or absolute path | |
$dir_base = 'base/path/to/files/'; | |
// Set this to directory name where dita files exist | |
$dir_read = 'user'; |
View convertTask.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? php | |
/** | |
* Convert a DITA General Task to a Strict Task | |
* Backup your files | |
* Carefully review what this script is doing | |
* Expect manual post processing cleanup | |
* Be aware that it does change some IDs | |
*/ | |
// Directory to read files from |