forked from heiglandreas/Org_Heigl_Hyphenator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Did some Cleanup in the Coding-Standards and in the build-file.
Also added some missing files and created a new Build
- Loading branch information
0 parents
commit 00ac9a3
Showing
60 changed files
with
185,692 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<buildpath> | ||
<buildpathentry kind="src" path="src/Org/Heigl"/> | ||
<buildpathentry kind="src" path="tests"/> | ||
<buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/> | ||
</buildpath> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>Hyphenator</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.wst.validation.validationbuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.dltk.core.scriptbuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.php.core.PHPNature</nature> | ||
</natures> | ||
</projectDescription> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#Fri Jun 05 07:05:16 CEST 2009 | ||
eclipse.preferences.version=1 | ||
include_path=0;/Org_Heigl_Hyphenator | ||
phpVersion=php5 | ||
use_asp_tags_as_php=false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
2009-06-10 - Version 0.1 | ||
|
||
Added Quality-Hyphenation |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright (c) 2009-2010 Andreas Heigl<[email protected]> | ||
|
||
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. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
README: | ||
|
||
Copyright (c) 2009 Andreas Heigl<[email protected]> | ||
|
||
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. | ||
|
||
+----------------------------------------------------------------------------+ | ||
| Installation: | | ||
+----------------------------------------------------------------------------+ | ||
|
||
Copy the 'Org'-folder somewhere to your PHP-include-directory | ||
|
||
+----------------------------------------------------------------------------+ | ||
| Usage: | | ||
+----------------------------------------------------------------------------+ | ||
<?php | ||
$hyphenator = Org_Heigl_Hyphenator::getInstance ( 'de' ); | ||
$hyphenator -> setHyphen ( '-' ) | ||
// Minimum 5 characters before the first hyphenation | ||
-> setLeftMin ( 5 ) | ||
// Hyphenate only words with more than 4 characters | ||
-> setWordMin ( 5 ) | ||
// Set some special characters | ||
-> setSpecialChars ( 'äöüß' ) | ||
// Only Hyphenate with the best quality | ||
-> setQuality ( Org_Heigl_Hyphenate::QUALITY_BEST ) | ||
// Words that shall not be hyphenated have to start with this string | ||
-> setNoHyphenateMarker ( 'nbr:' ) | ||
// Words that contain this string are custom hyphenated | ||
-> setCustomHyphen ( '--' ); | ||
|
||
// Hyphenate the string $string | ||
$hyphenated = $hyphenator -> hyphenate ( $text ); | ||
|
||
echo $hyphenated; | ||
?> | ||
|
||
+----------------------------------------------------------------------------+ | ||
| Documentation: | | ||
+----------------------------------------------------------------------------+ | ||
Use the included documentation from the 'doc/api'-folder |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#Build Number for ANT. Do not edit! | ||
#Mon Jun 07 12:01:26 CEST 2010 | ||
build.number=5 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* $Id$ | ||
* | ||
* Copyright (c) 2008-2009 Andreas Heigl<[email protected]> | ||
* | ||
* 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. | ||
* | ||
* This is the ant-buildfile | ||
* | ||
* @category Org_Heigl | ||
* @package Org_Heigl_Hyphenator | ||
* @author Andreas Heigl <[email protected]> | ||
* @copyright 2008 Andreas Heigl<[email protected]> | ||
* @license http://www.opensource.org/licenses/mit-license.php MIT-License | ||
* @version SVN: $Revision$ | ||
* @since 12.06.2008 | ||
*/ | ||
--> | ||
<project name="Org_Heigl_Hyphenator" default="build" basedir="."> | ||
|
||
<!-- This target deletes all temporary files from the directory --> | ||
<target name="clean"> | ||
<delete dir="doc/" /> | ||
<delete dir="build" /> | ||
</target> | ||
|
||
<target name="build" | ||
depends="clean, phpdoc, test, distribute" /> | ||
|
||
<target name="test"> | ||
<mkdir dir="${basedir}/build/logs"/> | ||
<exec executable="phpunit" dir="${basedir}/tests" failonerror="on"> | ||
<arg line="--log-junit ${basedir}/build/logs/phpunit.xml | ||
--coverage-clover ${basedir}/build/logs/phpunit.coverage.xml | ||
--coverage-html ${basedir}/doc/coverage | ||
AllTests" /> | ||
</exec> | ||
</target> | ||
|
||
|
||
<target name="phpdoc"> | ||
<exec executable="phpdoc" dir="${basedir}" failonerror="on"> | ||
<arg line=" --directory src | ||
--target doc/api | ||
--quiet off | ||
--undocumentedelements on | ||
--title 'Org_Heigl_Hyphenator' | ||
--parseprivate off | ||
--defaultpackagename 'Wdv_Org_Hyphenator' | ||
--output HTML:frames:DOM/earthli.de.utf8 | ||
--readmeinstallchangelog INSTALL,README,CHANGELOG,LICENSE | ||
--filename INSTALL,README,CHANGELOG,LICENSE | ||
--sourcecode on | ||
--javadocdesc off" /> | ||
|
||
</exec> | ||
</target> | ||
|
||
<target name="distribute"> | ||
<buildnumber /> | ||
<property file="build.number" /> | ||
<mkdir dir="${basedir}/dist"/> | ||
<zip destfile="dist/Org_Heigl_Ghostscript-Build_${build.number}.zip"> | ||
<zipfileset dir="doc" prefix="doc" /> | ||
<zipfileset dir="src" /> | ||
<fileset dir="." includes="CHANGELOG" /> | ||
<fileset dir="." includes="LICENSE" /> | ||
<fileset dir="." includes="README" /> | ||
</zip> | ||
<antcall target="clean"/> | ||
</target> | ||
</project> |
Binary file not shown.
Oops, something went wrong.