]> Shamusworld >> Repos - ardour-manual-diverged/commitdiff
Update to style guide and README.
authorShamus Hammons <jlhamm@acm.org>
Tue, 17 Jan 2017 02:24:04 +0000 (20:24 -0600)
committerShamus Hammons <jlhamm@acm.org>
Tue, 17 Jan 2017 02:24:04 +0000 (20:24 -0600)
README.md
STYLE_GUIDE

index dadce20797258e5265483636324640963430f53f..fd61c3b5ca408d6772596017e7333d010d7ed2b6 100644 (file)
--- a/README.md
+++ b/README.md
@@ -67,8 +67,8 @@ Content processing is applied to normal content if it has the correct header as
 Three types of content can have special processing done.
 
 - `.html` liquid/HTML files
-- `.md` markdown files
-- `.textile` textile files
+- `.md` markdown files (NOPE!)
+- `.textile` textile files (NOPE!)
 
 All files to be processed should also have a special header at the top too:
 
@@ -113,6 +113,7 @@ internet access. You will need `git`, `ruby`, and the ruby gem `liquid` installe
 2. open `ardour-manual/_site/index.html` in your favorite web browser
 
   If this page doesn't open and function correctly, follow these optional steps to serve up the page with nginx.
+  N.B.: Step 2 will *never* work; you *must* install nginx if you want to see it!
 
 3. Install [nginx](http://wiki.nginx.org/Install)
 4. Configure nginx server block in `/etc/nginx/sites-available/default`
@@ -147,6 +148,20 @@ E.g. `02_main/05_more/02_blah.html` after all processing is complete would end u
 
 The page format contained in the `_manual/` directory is different to the final rendered output (see special `_manual` content above) to make it simple to create content (you don't need to think about the `index.html` files).
 
+### New Stuff
 
+The above will have to be revised eventually, but for now, here's what's what:
+
+1. All content lives in master-doc.txt and in include/ .
+
+2. A little C helper program needs to be built and run. To build it, do:
+
+        gcc munge.cpp -o munge -lstdc++ -g
+
+3. Run the 'doit' script:
+
+        ./doit
+
+4. Now _site/ should contain the correct built site. Have fun! ;-)
 
 
index be65d6381b365ee4a7596826b116489ec9315d1d..09f7a6c51e43b352f12557d6283bb76f7b038a01 100644 (file)
@@ -114,9 +114,9 @@ is renamed or moved to another sub-directory, links should be ok.
 <dfn>
 encloses a newly introduced term that is being explained. Use for the first
 occurrence of the main concept of every manual page, or the first occurrence
-of a new concept after a sub-heading if necessary. Renders in bold face.
-Keep in mind that <dfn> tags might be used to generate an index of keywords
-- don't pollute it too much.
+of a new concept after a sub-heading if necessary. Renders in bold face. Keep
+in mind that <dfn> tags might be used to generate an index of keywords--don't
+pollute it too much.
 
 <abbr>
 is used to explain an abbreviation such as <abbr title="Linux Audio
@@ -124,7 +124,7 @@ Developers Simple Plugin API">LADSPA</abbr>. Browsers will usually pop up the
 definition when the user hovers over the word. Renders as dotted underlined
 in most browsers.
 On each page, use only for the first occurrence of every abbreviation. Avoid
-a redundant explanation in the text - the expansion can easily be extracted 
+a redundant explanation in the text--the expansion can easily be extracted 
 via CSS for printing.
 Use only in the text body, not in headings.
 
@@ -138,6 +138,7 @@ is used to strongly emphasize a word. Commonly rendered in bold.
 See above for usage.
 
 <br />
+Most of the time, these should be avoided, and used very infrequently.
 A line-break can sometimes be used to structure a paragraph, or to split a
 longish heading. Never use spurious <br/>s at the end of paragraphs or to
 control the spacing of sections. If you're unhappy with those, fix the CSS
@@ -191,6 +192,9 @@ So if you want the user to press Ctrl-N on Linux, that's actually <kbd
 class="mod1">N</kbd>. It will render as "Ctrl N" for you, and as "Cmd N" for
 your Mac-using friend. Nice, uh?
 
+N.B.: If you want to have just the name of the modifier key by itself, use
+<kbd class="mod1>&zwnj;</kbd> (zero-width non-joiner).
+
 For anything you want the user to type, use <kbd> as a block-level element.
 See above for other <kbd> classes to denote menu items, selections, mouse
 events and controller actions.
@@ -227,7 +231,8 @@ descriptive 'alt="A short textual description of the image content"'
 element.
 Images are usually placed as block-level elements, i.e. outside of a
 paragraph, unless they are no higher than one row and make sense in the text
-flow.
+flow. Aside from this exception, they should *always* be wrapped inside of a
+<p></p> block.
 
 5. Other conventions
 ====================
@@ -240,21 +245,27 @@ flow.
   kind of subtle inflection, use semantic markup instead.
 * The hyphen is used to for compound words such as this well-advised example.
 * Do not hyphenate words at line breaks.
-* For breaks in thought &mdash; such as this splendid example &mdash; use
-  the long em-dash.
-* For ranges of values, use the en-dash: Monday &ndash; Friday, 0 &ndash;
-  11.
+* For breaks in thought&mdash;such as this splendid example&mdash;use
+  the long em-dash. Note that the em-dash is snugged up against the text on both
+  sides--this is the proper way to use them.
+* For ranges of values, use the en-dash: Monday&ndash;Friday, 0&ndash;11. Note
+  again, the en-dash is snugged up to its surrounding elements.
 * Use a non-breaking space ("&nbsp;") between a number and its unit.
+* Colons (":") always snug up to their text on the left: it is an error to add
+  space between text on the left and the colon.
 
 
 5.2 Language
 ------------
 
-* The Ardour manual is written in Americal English spelling.
+* The Ardour manual is written in American English spelling.
 * Use SI units with standard abbreviations. Give imperial units only as
   additional information, if at all.
-* Do not use contractions like "you'll", always write full forms.
-* Do not over-use "You", write about the program, not the user.
+* Do not use contractions like "it'll", always write full forms.
+* Do not over-use "You", write about the program, not the user. Avoid it if at 
+  all possible, it makes for tighter and better reading text.
+* Always write out numbers less than 11. E.g., "One or two ..." instead of
+  "1 or 2 ...".
 
 
 5.3 Chapter Headline Capitalization
@@ -297,6 +308,8 @@ content per heading and you do not expect the article to grow.
 * If pages grow long, consider splitting them into sub-chapters at their
 headings.
 * Nobody needs "the next paragraph is about the following" paragraphs.
+* When creating a <p class="note">NOTE</p>, *do not* put the word NOTE into
+  the note, the styling tells the user that it is a note.
 
 5.6. Encoding
 -------------
@@ -306,3 +319,4 @@ headings.
 HTML character entities instead, for example for cursor arrows: &rarr;
 &larr; &uarr; &darr;. Diacriticals on vowels and other special letters are
 probably ok by now, so don't bother with &eacute; and friends, just type é.
+