Revision history for AcronymFormatter
Revision [23186]
Last edited on 2016-05-20 07:38:47 by JavaWoman [Replaces old-style internal links with new pipe-split links.]Additions:
~- **important** fix conflicts with links, [[Docs:WikiName | WikiNames]] and other elements containing sequences of uppercase letters that should not be rendered as acronyms;
Add the following values to the [[Docs:ConfigurationOptions | configuration file]]:
Add the following values to the [[Docs:ConfigurationOptions | configuration file]]:
Deletions:
Add the following values to the [[Docs:ConfigurationOptions configuration file]]:
Revision [19118]
Edited on 2008-01-28 00:14:03 by JavaWoman [Modified links pointing to docs server]Additions:
~- **important** fix conflicts with links, [[Docs:WikiName WikiNames]] and other elements containing sequences of uppercase letters that should not be rendered as acronyms;
Add the following values to the [[Docs:ConfigurationOptions configuration file]]:
Add the following values to the [[Docs:ConfigurationOptions configuration file]]:
Deletions:
Add the following values to the [[ConfigurationOptions configuration file]]:
Additions:
if (($this->GetConfigValue('enable_acronyms') == 1) && file_exists($this->GetConfigValue('acronym_table'))) {
// define constants
define('ACRONYM_PATTERN', '/\b([A-Z]{2,})\b/'); #matches sequences of 2 or more capital letters within word boundaries
define('FORMATTED_ACRONYM','<acronym title="%s">%s</acronym>'); # acronym can be replaced by abbrv
// get acronym definitions
global $wikka_acronyms;
include($this->GetConfigValue('acronym_table'));
// replace known acronyms with HTML elements
$text = preg_replace_callback(
ACRONYM_PATTERN,
create_function(
'$matches',
'global $wikka_acronyms; return (is_array($wikka_acronyms) && array_key_exists($matches[0], $wikka_acronyms))? sprintf(FORMATTED_ACRONYM, $wikka_acronyms[$matches[0]], $matches[0]) : $matches[0];'
),
$text);
}
return $text;
}
// VARIABLES
== 3. Modify ##wikka.config.php##==
Add the following values to the [[ConfigurationOptions configuration file]]:
%%(php)
"enable_acronyms" => "1",
"acronym_table" => "acronyms.php",
== 4. Create the acronym configuration file (##acronyms.php##)==
Save the following code as ##acronyms.php## in the root folder of your Wikka installation. You can obviously add as many acronym definitions as you like:
%%(php)
<?php
$wikka_acronyms = array(
"ACL" => "Access Control List",
"API" => "Application Program(ming) Interface",
"CSS" => "Cascading Style Sheets",
"CVS" => "Concurrent Version System",
"DHTML" => "Dynamic HyperText Markup Language",
"DOM" => "Document Object Model",
"DTD" => "Document Type Definition",
"FAQ" => "Frequently Asked Questions",
"FF" => "Firefox",
"GIF" => "Graphics Interchange Format",
"GPL" => "GNU General Public License",
"GUI" => "Graphical User Interface",
"HTML" => "HyperText Markup Language",
"HTTP" => "HyperText Transfer Protocol",
"IE" => "Internet Explorer",
"PHP" => "PHP hypertext processor",
"RSS" => "Rich Site Summary", # or Really Simple Syndication or RDF Site Summary...
"SQL" => "Structured Query Language",
"TOC" => "Table of Contents",
);
?>
== 5. Add some style ==
Some browsers (Mozilla/""<acronym style=" border-bottom: 1px dotted #333;cursor: help" title="Firefox">FF</acronym>"") automatically highlight ##acronym## elements in the page. To make acronyms visible also in other browsers, paste the following in your stylesheet (default: ##./css/wikka.css##):
%%(css)
acronym {
border-bottom: 1px dotted #333;
cursor: help /*modifies the mouse pointer as a question mark*/
}
----
CategoryDevelopmentFormatters, CategoryUserContributions
// define constants
define('ACRONYM_PATTERN', '/\b([A-Z]{2,})\b/'); #matches sequences of 2 or more capital letters within word boundaries
define('FORMATTED_ACRONYM','<acronym title="%s">%s</acronym>'); # acronym can be replaced by abbrv
// get acronym definitions
global $wikka_acronyms;
include($this->GetConfigValue('acronym_table'));
// replace known acronyms with HTML elements
$text = preg_replace_callback(
ACRONYM_PATTERN,
create_function(
'$matches',
'global $wikka_acronyms; return (is_array($wikka_acronyms) && array_key_exists($matches[0], $wikka_acronyms))? sprintf(FORMATTED_ACRONYM, $wikka_acronyms[$matches[0]], $matches[0]) : $matches[0];'
),
$text);
}
return $text;
}
// VARIABLES
== 3. Modify ##wikka.config.php##==
Add the following values to the [[ConfigurationOptions configuration file]]:
%%(php)
"enable_acronyms" => "1",
"acronym_table" => "acronyms.php",
== 4. Create the acronym configuration file (##acronyms.php##)==
Save the following code as ##acronyms.php## in the root folder of your Wikka installation. You can obviously add as many acronym definitions as you like:
%%(php)
<?php
$wikka_acronyms = array(
"ACL" => "Access Control List",
"API" => "Application Program(ming) Interface",
"CSS" => "Cascading Style Sheets",
"CVS" => "Concurrent Version System",
"DHTML" => "Dynamic HyperText Markup Language",
"DOM" => "Document Object Model",
"DTD" => "Document Type Definition",
"FAQ" => "Frequently Asked Questions",
"FF" => "Firefox",
"GIF" => "Graphics Interchange Format",
"GPL" => "GNU General Public License",
"GUI" => "Graphical User Interface",
"HTML" => "HyperText Markup Language",
"HTTP" => "HyperText Transfer Protocol",
"IE" => "Internet Explorer",
"PHP" => "PHP hypertext processor",
"RSS" => "Rich Site Summary", # or Really Simple Syndication or RDF Site Summary...
"SQL" => "Structured Query Language",
"TOC" => "Table of Contents",
);
?>
== 5. Add some style ==
Some browsers (Mozilla/""<acronym style=" border-bottom: 1px dotted #333;cursor: help" title="Firefox">FF</acronym>"") automatically highlight ##acronym## elements in the page. To make acronyms visible also in other browsers, paste the following in your stylesheet (default: ##./css/wikka.css##):
%%(css)
acronym {
border-bottom: 1px dotted #333;
cursor: help /*modifies the mouse pointer as a question mark*/
}
----
CategoryDevelopmentFormatters, CategoryUserContributions
Deletions:
Additions:
if (($this->GetConfigValue('enable_acronyms') == 1)
Deletions:
// define constants
define('ACRONYM_PATTERN', '/\b([A-Z]{2,})\b/'); #matches sequences of 2 or more capital letters within word boundaries
define('FORMATTED_ACRONYM','<acronym title="%s">%s</acronym>'); # acronym can be replaced by abbrv
// get acronym definitions
global $wikka_acronyms;
include($this->GetConfigValue('acronym_table'));
// replace known acronyms with HTML elements
$text = preg_replace_callback(
ACRONYM_PATTERN,
create_function(
'$matches',
'global $wikka_acronyms; return (is_array($wikka_acronyms) && array_key_exists($matches[0], $wikka_acronyms))? sprintf(FORMATTED_ACRONYM, $wikka_acronyms[$matches[0]], $matches[0]) : $matches[0];'
),
$text);
}
return $text;
}
// VARIABLES
== 3. Modify ##wikka.config.php##==
Add the following values to the [[ConfigurationOptions configuration file]]:
%%(php)
"enable_acronyms" => "1",
"acronym_table" => "acronyms.php",
== 4. Create the acronym configuration file (##acronyms.php##)==
Save the following code as ##acronyms.php## in the root folder of your Wikka installation. You can obviously add as many acronym definitions as you like:
%%(php)
<?php
$wikka_acronyms = array(
"ACL" => "Access Control List",
"API" => "Application Program(ming) Interface",
"CSS" => "Cascading Style Sheets",
"CVS" => "Concurrent Version System",
"DHTML" => "Dynamic HyperText Markup Language",
"DOM" => "Document Object Model",
"DTD" => "Document Type Definition",
"FAQ" => "Frequently Asked Questions",
"FF" => "Firefox",
"GIF" => "Graphics Interchange Format",
"GPL" => "GNU General Public License",
"GUI" => "Graphical User Interface",
"HTML" => "HyperText Markup Language",
"HTTP" => "HyperText Transfer Protocol",
"IE" => "Internet Explorer",
"PHP" => "PHP hypertext processor",
"RSS" => "Rich Site Summary", # or Really Simple Syndication or RDF Site Summary...
"SQL" => "Structured Query Language",
"TOC" => "Table of Contents",
);
?>
== 5. Add some style ==
Some browsers (Mozilla/""<acronym style=" border-bottom: 1px dotted #333;cursor: help" title="Firefox">FF</acronym>"") automatically highlight ##acronym## elements in the page. To make acronyms visible also in other browsers, paste the following in your stylesheet (default: ##./css/wikka.css##):
%%(css)
acronym {
border-bottom: 1px dotted #333;
cursor: help /*modifies the mouse pointer as a question mark*/
}
----
CategoryDevelopmentFormatters, CategoryUserContributions
Additions:
"RSS" => "Rich Site Summary", # or Really Simple Syndication or RDF Site Summary...
Deletions:
Revision [9212]
Edited on 2005-06-14 08:09:30 by JavaWoman [CSS correction; removing MySQL (not an acronym), minor corrections]Additions:
"API" => "Application Program(ming) Interface",
"CSS" => "Cascading Style Sheets",
"DHTML" => "Dynamic HyperText Markup Language",
"HTML" => "HyperText Markup Language",
"HTTP" => "HyperText Transfer Protocol",
"RSS" => "Rich Site Summary", # or Really Simple Syndication ...
"CSS" => "Cascading Style Sheets",
"DHTML" => "Dynamic HyperText Markup Language",
"HTML" => "HyperText Markup Language",
"HTTP" => "HyperText Transfer Protocol",
"RSS" => "Rich Site Summary", # or Really Simple Syndication ...
Deletions:
"CSS" => "Cascading Style Sheet",
"DHTML" => "Dynamic Hyper Text Markup Language",
"HTML" => "Hyper Text Markup Language",
"HTTP" => "Hyper Text Transfer Protocol",
"MySQL" => "My Structured Query Language",
"RSS" => "Rich Site Summary",
Revision [9209]
Edited on 2005-06-14 04:12:28 by SamuelDr [Acronyms definitions : CSS(correction), MySQL, PHP, SQL]Additions:
"CSS" => "Cascading Style Sheet",
"MySQL" => "My Structured Query Language",
"PHP" => "PHP hypertext processor",
"SQL" => "Structured Query Language",
"MySQL" => "My Structured Query Language",
"PHP" => "PHP hypertext processor",
"SQL" => "Structured Query Language",
Deletions:
Additions:
CategoryDevelopmentFormatters, CategoryUserContributions
Deletions:
Revision [8460]
Edited on 2005-05-25 08:24:12 by DarTar [v.0.3 - fixed regex to recognize word boundaries]Additions:
Current version: **0.3** ''(improved regex pattern)''
* @version 0.3
define('ACRONYM_PATTERN', '/\b([A-Z]{2,})\b/'); #matches sequences of 2 or more capital letters within word boundaries
* @version 0.3
define('ACRONYM_PATTERN', '/\b([A-Z]{2,})\b/'); #matches sequences of 2 or more capital letters within word boundaries
Deletions:
* @version 0.2
define('ACRONYM_PATTERN', '/([A-Z]{2,})/'); #matches sequences of 2 or more capital letters
Additions:
CategoryDevelopment, CategoryUserContributions
Deletions:
Additions:
~- **important** fix conflicts with links, [[WikiName WikiNames]] and other elements containing sequences of uppercase letters that should not be rendered as acronyms;
Deletions:
Additions:
~-customizable acronym definition file;
Deletions:
Additions:
~-customizable acronym definitions file;
~-formatter can be disabled from config file;
~-configurable ""<acronym style=" border-bottom: 1px dotted #333;cursor: help" title="Regular Expressions">REGEX</acronym>"" pattern;
~-configurable output format (##abbrv## or ##acronym##);
~- improve ""<acronym style=" border-bottom: 1px dotted #333;cursor: help" title="Regular Expressions">REGEX</acronym>"" pattern;
define('FORMATTED_ACRONYM','<acronym title="%s">%s</acronym>'); # acronym can be replaced by abbrv
~-formatter can be disabled from config file;
~-configurable ""<acronym style=" border-bottom: 1px dotted #333;cursor: help" title="Regular Expressions">REGEX</acronym>"" pattern;
~-configurable output format (##abbrv## or ##acronym##);
~- improve ""<acronym style=" border-bottom: 1px dotted #333;cursor: help" title="Regular Expressions">REGEX</acronym>"" pattern;
define('FORMATTED_ACRONYM','<acronym title="%s">%s</acronym>'); # acronym can be replaced by abbrv
Deletions:
~-formatter can be disabled from config file
~- improve ""<acronym style=" border-bottom: 1px dotted #333;cursor: help" title="Regular Expressions">REGEX</acronym>"" pattern and define it as constant;
~- use ##abbrv## or ##acronym## ?
define('FORMATTED_ACRONYM','<acronym title="%s">%s</acronym>');
Additions:
Add the following function in the engine, for instance immediately before the ##VARIABLES## section:
Deletions:
Additions:
define('ACRONYM_PATTERN', '/([A-Z]{2,})/'); #matches sequences of 2 or more capital letters
Deletions:
Revision [8132]
Edited on 2005-05-14 11:23:51 by DarTar [adding configuration option to disable acronyms]Additions:
* @version 0.2
// define constants
define('FORMATTED_ACRONYM','<acronym title="%s">%s</acronym>');
// get acronym definitions
// replace known acronyms with HTML elements
'global $wikka_acronyms; return (is_array($wikka_acronyms) && array_key_exists($matches[0], $wikka_acronyms))? sprintf(FORMATTED_ACRONYM, $wikka_acronyms[$matches[0]], $matches[0]) : $matches[0];'
// define constants
define('FORMATTED_ACRONYM','<acronym title="%s">%s</acronym>');
// get acronym definitions
// replace known acronyms with HTML elements
'global $wikka_acronyms; return (is_array($wikka_acronyms) && array_key_exists($matches[0], $wikka_acronyms))? sprintf(FORMATTED_ACRONYM, $wikka_acronyms[$matches[0]], $matches[0]) : $matches[0];'
Deletions:
'global $wikka_acronyms; return (is_array($wikka_acronyms) && array_key_exists($matches[0], $wikka_acronyms))? "<acronym title=\"".$wikka_acronyms[$matches[0]]."\">".$matches[0]."</acronym>" : $matches[0];'
Revision [8131]
Edited on 2005-05-14 11:17:14 by DarTar [adding configuration option to disable acronyms]Additions:
Current version: **0.2**
$text = $this->RenderAcronyms($text);
* @param string $text source sent from the formatter
* @return string $text source with known acronyms formatted as HTML elements
function RenderAcronyms($text){
if (($this->GetConfigValue('enable_acronyms') == 1) && file_exists($this->GetConfigValue('acronym_table'))) {
define('ACRONYM_PATTERN', '/([A-Z]{2,})/');
global $wikka_acronyms;
include($this->GetConfigValue('acronym_table'));
$text = preg_replace_callback(
ACRONYM_PATTERN,
create_function(
'$matches',
'global $wikka_acronyms; return (is_array($wikka_acronyms) && array_key_exists($matches[0], $wikka_acronyms))? "<acronym title=\"".$wikka_acronyms[$matches[0]]."\">".$matches[0]."</acronym>" : $matches[0];'
),
$text);
}
return $text;
$text = $this->RenderAcronyms($text);
* @param string $text source sent from the formatter
* @return string $text source with known acronyms formatted as HTML elements
function RenderAcronyms($text){
if (($this->GetConfigValue('enable_acronyms') == 1) && file_exists($this->GetConfigValue('acronym_table'))) {
define('ACRONYM_PATTERN', '/([A-Z]{2,})/');
global $wikka_acronyms;
include($this->GetConfigValue('acronym_table'));
$text = preg_replace_callback(
ACRONYM_PATTERN,
create_function(
'$matches',
'global $wikka_acronyms; return (is_array($wikka_acronyms) && array_key_exists($matches[0], $wikka_acronyms))? "<acronym title=\"".$wikka_acronyms[$matches[0]]."\">".$matches[0]."</acronym>" : $matches[0];'
),
$text);
}
return $text;
Deletions:
if ($this->GetConfigValue('enable_acronyms') == 1) {
$text = preg_replace_callback('/([A-Z]{2,})/', array(&$this,'AcronymTableLookup'), $text); # REGEX pattern matching sequences of 2 or more capital letters
* @param array $matches array of matching strings sent from the formatter
* @return string $acronym acronym formatted as HTML element
function AcronymTableLookup($matches){
global $wikka_acronyms;
include($this->GetConfigValue('acronym_table'));
$acronym = (is_array($wikka_acronyms) && array_key_exists($matches[0], $wikka_acronyms))? "<acronym title=\"".$wikka_acronyms[$matches[0]]."\">".$matches[0]."</acronym>" : $matches[0];
return $acronym;
Revision [8130]
Edited on 2005-05-14 10:40:44 by DarTar [adding configuration option to disable acronyms]Additions:
~- improve ""<acronym style=" border-bottom: 1px dotted #333;cursor: help" title="Regular Expressions">REGEX</acronym>"" pattern and define it as constant;
Deletions:
Revision [8129]
Edited on 2005-05-14 10:40:04 by DarTar [adding configuration option to disable acronyms]Deletions:
Revision [8128]
Edited on 2005-05-14 10:38:25 by DarTar [adding configuration option to disable acronyms]Additions:
"ACL" => "Access Control List",
"API" => "Application Programming Interface",
"ASCII => "American Standard Code for Information Interchange",
"CVS" => "Concurrent Version System",
"DHTML" => "Dynamic Hyper Text Markup Language",
"DOM" => "Document Object Model",
"DTD" => "Document Type Definition",
"FAQ" => "Frequently Asked Questions",
"FF" => "Firefox",
"GUI" => "Graphical User Interface",
"HTTP" => "Hyper Text Transfer Protocol",
"IE" => "Internet Explorer",
"RSS" => "Rich Site Summary",
"TOC" => "Table of Contents",
"API" => "Application Programming Interface",
"ASCII => "American Standard Code for Information Interchange",
"CVS" => "Concurrent Version System",
"DHTML" => "Dynamic Hyper Text Markup Language",
"DOM" => "Document Object Model",
"DTD" => "Document Type Definition",
"FAQ" => "Frequently Asked Questions",
"FF" => "Firefox",
"GUI" => "Graphical User Interface",
"HTTP" => "Hyper Text Transfer Protocol",
"IE" => "Internet Explorer",
"RSS" => "Rich Site Summary",
"TOC" => "Table of Contents",
Deletions:
Revision [8127]
Edited on 2005-05-14 10:28:05 by DarTar [adding configuration option to disable acronyms]Additions:
~- (optionally) move the ##preg_replace_callback## section from the formatter to the ##AcronymTableLookup()## function.
Revision [8126]
Edited on 2005-05-14 10:26:13 by DarTar [adding configuration option to disable acronyms]Additions:
* @return string $acronym acronym formatted as HTML element
Deletions:
Revision [8125]
Edited on 2005-05-14 10:23:23 by DarTar [adding configuration option to disable acronyms]Additions:
/**
* Look up and return acronym definition from a configuration file.
*
* @author {@link http://wikka.jsnx.com/DarTar DarioTaraborelli}
* @version 0.1
*
* @access public
* @uses GetConfigValue()
*
* @param array $matches array of matching strings sent from the formatter
* @return string $acronym acronym formatted as HTM element
*/
$acronym = (is_array($wikka_acronyms) && array_key_exists($matches[0], $wikka_acronyms))? "<acronym title=\"".$wikka_acronyms[$matches[0]]."\">".$matches[0]."</acronym>" : $matches[0];
return $acronym;
* Look up and return acronym definition from a configuration file.
*
* @author {@link http://wikka.jsnx.com/DarTar DarioTaraborelli}
* @version 0.1
*
* @access public
* @uses GetConfigValue()
*
* @param array $matches array of matching strings sent from the formatter
* @return string $acronym acronym formatted as HTM element
*/
$acronym = (is_array($wikka_acronyms) && array_key_exists($matches[0], $wikka_acronyms))? "<acronym title=\"".$wikka_acronyms[$matches[0]]."\">".$matches[0]."</acronym>" : $matches[0];
return $acronym;
Deletions:
Revision [8124]
Edited on 2005-05-14 10:16:08 by DarTar [adding configuration option to disable acronyms]Additions:
~-customizable acronym definitions file
~-formatter can be disabled from config file
~- support ""<acronym style=" border-bottom: 1px dotted #333;cursor: help" title="Cascading Style Sheets">CSS</acronym>"" classes for different kinds of acronyms;
~-formatter can be disabled from config file
~- support ""<acronym style=" border-bottom: 1px dotted #333;cursor: help" title="Cascading Style Sheets">CSS</acronym>"" classes for different kinds of acronyms;
Deletions:
~-enable/disable formatter from config file
~- support for ""<acronym style=" border-bottom: 1px dotted #333;cursor: help" title="Cascading Style Sheets">CSS</acronym>"" classes for different kinds of acronyms;
Revision [8121]
Edited on 2005-05-14 09:59:12 by DarTar [adding configuration option to disable acronyms]Additions:
return (is_array($wikka_acronyms) && array_key_exists($matches[0], $wikka_acronyms))? "<acronym title=\"".$wikka_acronyms[$matches[0]]."\">".$matches[0]."</acronym>" : $matches[0];
Deletions:
Revision [8120]
Edited on 2005-05-14 09:55:18 by DarTar [adding configuration option to disable acronyms]Additions:
====Features====
~-custom acronym definitions file
~-enable/disable formatter from config file
if ($this->GetConfigValue('enable_acronyms') == 1) {
$text = preg_replace_callback('/([A-Z]{2,})/', array(&$this,'AcronymTableLookup'), $text); # REGEX pattern matching sequences of 2 or more capital letters
Add the following values to the [[ConfigurationOptions configuration file]]:
"enable_acronyms" => "1",
~-custom acronym definitions file
~-enable/disable formatter from config file
if ($this->GetConfigValue('enable_acronyms') == 1) {
$text = preg_replace_callback('/([A-Z]{2,})/', array(&$this,'AcronymTableLookup'), $text); # REGEX pattern matching sequences of 2 or more capital letters
Add the following values to the [[ConfigurationOptions configuration file]]:
"enable_acronyms" => "1",
Deletions:
Add the following value to the [[ConfigurationOptions configuration file]]:
Additions:
Some browsers (Mozilla/""<acronym style=" border-bottom: 1px dotted #333;cursor: help" title="Firefox">FF</acronym>"") automatically highlight ##acronym## elements in the page. To make acronyms visible also in other browsers, paste the following in your stylesheet (default: ##./css/wikka.css##):
Deletions:
Additions:
cursor: help /*modifies the mouse pointer as a question mark*/
Deletions:
Additions:
Some browsers (Mozilla/""<acronym style=" border-bottom: 1px dotted #333;cursor: help" title="Firefox">FF</acronym>"") automatically highlight ##acronym## elements in the page. To make acronyms visible also in other browsers, paste the following in your stylesheet
Deletions:
Additions:
~- improve ""<acronym style=" border-bottom: 1px dotted #333;cursor: help" title="Regular Expressions">REGEX</acronym>"";
~- support for ""<acronym style=" border-bottom: 1px dotted #333;cursor: help" title="Cascading Style Sheets">CSS</acronym>"" classes for different kinds of acronyms;
Some browsers (Mozilla/"""<acronym style=" border-bottom: 1px dotted #333;cursor: help" title="Firefox">FF</acronym>") automatically highlight ##acronym## elements in the page. To make acronyms visible also in other browsers, paste the following in your stylesheet
~- support for ""<acronym style=" border-bottom: 1px dotted #333;cursor: help" title="Cascading Style Sheets">CSS</acronym>"" classes for different kinds of acronyms;
Some browsers (Mozilla/"""<acronym style=" border-bottom: 1px dotted #333;cursor: help" title="Firefox">FF</acronym>") automatically highlight ##acronym## elements in the page. To make acronyms visible also in other browsers, paste the following in your stylesheet
Deletions:
~- support for CSS classes for different kinds of acronyms;
Some browsers (Mozilla/FF) automatically undeline acronym elements in the page. To make acronyms visible also in other browsers, paste the following in your stylesheet
Deletions:
Additions:
~- support for CSS classes for different kinds of acronyms;
== 5. Add some style ==
Some browsers (Mozilla/FF) automatically undeline acronym elements in the page. To make acronyms visible also in other browsers, paste the following in your stylesheet
%%(css)
acronym {
border-bottom: 1px dotted #333;
cursor: help /*modifies the mouse pointer in a question mark on hover*/
}
%
== 5. Add some style ==
Some browsers (Mozilla/FF) automatically undeline acronym elements in the page. To make acronyms visible also in other browsers, paste the following in your stylesheet
%%(css)
acronym {
border-bottom: 1px dotted #333;
cursor: help /*modifies the mouse pointer in a question mark on hover*/
}
%
No Differences
Additions:
Add the following function in the code, for instance immediately before the ##VARIABLES## section:
Deletions:
Additions:
%%(php;341)
// VARIABLES%%
%%(php;341)
// VARIABLES%%
%%(php;341)
Deletions:
%%(php;340)
Additions:
%%(php;340)
%%(php;340)
%%(php;340)
Deletions:
%%(php;341)
Additions:
The list of acronyms can be set by the WikiAdmin in a configuration file: each time an acronym is found in the page source matching one of the entries of this file, it is automatically rendered with the appropriate markup and expanded description.
Deletions:
Additions:
This modification allows Wikka to automatically parse known acronyms and render them as ##<acronym>## elements with titles, for example:
Deletions:
Additions:
~""<acronym style=" border-bottom: 1px dotted #333;cursor: help" title="Cascading Style Sheets">CSS</acronym> - <acronym style=" border-bottom: 1px dotted #333;cursor: help" title="Frequently Asked Questions">FAQ</acronym> - <acronym style=" border-bottom: 1px dotted #333;cursor: help" title="HyperText Markup Language">HTML</acronym>""
Deletions:
Additions:
~""<acronym style=" border-bottom: 1px dotted #333;cursor: help" title="Cascading Style Sheets">CSS</acronym> - <acronym style=" border-bottom: 1px dotted #333;cursor: help" title="Frequently Asked Questions">FAQ</acronym> - <acronym style=" border-bottom: 1px dotted #333;cursor: help" title="HTML">HyperText Markup Language</acronym>""
Deletions:
Additions:
===== Acronym (or Abbreviation) Formatter =====
>>==See also:==
~-WantedFormatters
~-AbbreviationAction
>>This is the development page for the Acronym (or Abbreviation) Formatter.::c::
~- fix eventual conflicts with [[WikiName WikiNames]] containing sequences of uppercase letters;
~- improve REGEX;
~- use ##abbrv## or ##acronym## ?
>>==See also:==
~-WantedFormatters
~-AbbreviationAction
>>This is the development page for the Acronym (or Abbreviation) Formatter.::c::
~- fix eventual conflicts with [[WikiName WikiNames]] containing sequences of uppercase letters;
~- improve REGEX;
~- use ##abbrv## or ##acronym## ?
Deletions:
~- fix eventual conflicts with WikiNames containing sequences of uppercase letters;
~- improve REGEX.
Additions:
~- fix eventual conflicts with WikiNames containing sequences of uppercase letters;
~- improve REGEX.
~- improve REGEX.
Deletions:
~- improve REGEX