"deffintion", // ESPECIALLY note that they all end with commas EXCEPT the last one global $acronym_acronym; global $glosario; if( empty($glosario) ) { $glosario = array(); } if( empty($acronym_acronym) ) { $acronym_acronym = array( "AOL" => "America Online", "API" => "Application Programming Interface / Librerías para desarrollo", "CD" => "Compact Disk", "CD\-R" => "CD-ROM Data Compact Disk (Read-only)", "CD\-RW" => "Compact Disk for read and write", "CGI" => "Common Gateway Interface", "CLI" => "Common Language Interpreter", "CMS" => "Content Management System / Sistema para Manejo de Contenidos", "CSS" => "Cascading Style Sheets / Hojas de estilo en cascada para web", "CVS" => "Concurrent Versions System", "DNS" => "Domain Name System / Servidor de nombres de dominio", "DOM" => "Document Object Model", "DSL" => "Digital Subscriber Line (broadband over phone lines)", "DTD" => "Document Type Definition", "DVD" => "Digital Video Disc", "EBI" => "Elim Bible Institute (Bible College in upstate NY)", "EGC" => "Elim Gospel Church (my church)", "EF" => "Elim Fellowship (an association of evangelical ministers)", "FAQ" => "Frequently Asked Questions", "FCC" => "Federal Communications Commission", "FOAF" => "Friend Of A Friend is a RDF dialect for describing relationships", "FrSIRT" => "French Security Incident Response Team", "FSF" => "Free Software Foundation", "FSFE" => "Free Software Foundation Europe", "FSFI" => "Free Software Foundation India", "FSFLA" => "Free Software Foundation Latin America", "FTP" => "File Transfer Protocol", "FTTH" => "Fiber to the Home", "GB" => "Gigabyte", "template" => "Plantillas con formatos predefinidos", "plugin" => "módulos que se agregan como funcionalidades a una aplicación", "templates" => "Plantillas con formatos predefinidos", "plugins" => "módulos que se agregan como funcionalidades a una aplicación", "GFDL" => "GNU Free Documentation License", "GNU" => "GNU is NOT UNIX", "GNU/Linux" => "GNU/Linux - SO libre basado en la GPL", "GNU/Linux" => "GNU/Linux - SO libre basado en la GPL", "GPG" => "Gnu PG (Open source public key encryption)", "GPL" => "GNU General Public License", "GPLv3" => "GNU General Public License Ver. 3", "GTK" => "GUI ToolKit - The GIMP Tool Kit for dcreating user-intwp-content/plugins/erfaces", "GUI" => "Graphical User Interface", "HDTV" => "High Definition TeleVision", "HTML" => "HyperText Markup Language", "IE" => "Internet Explorer", "ICANN" => "Internet Corporation for Assigned Names and Numbers", "IHOP" => "International House of Pancakes", "IIRC" => "if I remember correctly", "IIS" => "Internet Infomation Server", "IM" => "Instant Message", "IMAP" => "Internet Message Access Protocol", "IP" => "Internet Protocol", "IRC" => "Internet Relay Chat - like Instant Messaging for groups", "JSP" => "Java Server Pages", "KB" => "Kilobyte", "KDE" => "K Desktop Environment", "KVM" => "Keyboard, Video, Mouse switch for controlling multiple computers", "LDAP" => "Lightweight Directory Access Protocol", "LGPL" => "GNU Lesser General Public License", "MAPI" => "Mail Application Programming Interface", "MB" => "Megabyte", "MP3" => "MPEG Layer 3 - a common audio codec for music files", "MS" => "Microsoft", "MSDN" => "Microsoft Developer Network", "MSIE" => "Microsoft Internet Explorer", "MSN" => "Microsoft Network", "NNTP" => "Network News Transfer Protocol - the protocol used for NewsGroups", "NYC" => "New York City", "OPML" => "Outline Processor Markup Language", "OpenSource" => "Sistema de Código abierto, no es lo mismo que el SL. SL=OS+Libertad", "P2P" => "Peer To Peer", "PBS" => "Public Broadcasting System", "PDF" => "Portable Document Format", "PGP" => "Pretty Good Privacy (public key encryption)", "PHP" => "Hypertext PreProcessing", "PNG" => "Portable Network Graphics", "POP" => "Short for POP3, the Post Office Protocol for email", "POP3" => "Post Office Protocol 3 (for email)", "RAID" => "Redundant Array of Independent Disks", "RDF" => "Resource Description Framework", "RPC" => "Remote Procedure Call", "RSS" => "Really Simple Syndication", "SIG" => "Special Interest Group", "SOAP" => "Simple Object Access Protocol", "SQL" => "Structured Query Language (a database standard)", "SSH" => "Secure SHell (encrypted protocol replaces telnet and FTP)", "SSN" => "Social Security Number", "SSL" => "Secure Sockets Layer (a security protocol)", "SVG" => "Scalable Vector Graphics", "TCP" => "Transmission Control Protocol", "UDP" => "User Datagram Protocol", "URI" => "Uniform Resource Identifier", "UYLUG" => "Grupo de Usuarios Linux del Uruguay", "Uruguay" => "República Oriental del Uruguay", "URL" => "Uniform Resource Locator", "USB" => "Universal Serial Bus", "VB" => "Visual Basic", "VBS" => "Visual Basic Script", "VM" => "Virtual Machine", "VNC" => "Virtual Network Computing", "W3C" => "World Wide Web Consortium", "WCAG" => "Web Content Accessibility Guidelines", "WYSIWYG" => "What You See Is What You Get / Lo que ve es lo que obtiene", "XHTML" => "eXtensible HyperText Markup Language - HTML reformulated as XML", "XML" => "eXtensible Markup Language", "XSL" => "eXtensible Stylesheet Language", "XSLT" => "eXtensible Stylesheet Language Transformation", ); } if( !empty($glosario) ) { $glosario = array(); } $text = " $text "; $idioma = substr(WPLANG,0,2); $hay = 0; foreach($acronym_acronym as $acronym => $description) { $patt = "|([\s\>])$acronym([\s\<\.,;:\\/\-])|imsU"; $valor = "$1$acronym$2"; $text = preg_replace($patt, $valor , $text); $text = preg_replace("|[$]$acronym[$]|imsU" , "$acronym" , $text); if ( preg_match($patt,$text) > 0 ) { $hay = 1; array_push($glosario, $acronym); } } if( !empty($glosario) ) { $text = "$text

Wikipedia:  "; foreach($glosario as $palabra) { $valor = "$palabra  "; $text = "$text$valor"; } } return trim( $text ); } add_filter('the_content', 'acronyms', 18); add_filter('comment_text', 'acronyms', 18); /* \"(?)\" */ ?>