semantictext 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.rdoc +5 -1
- data/TODO.rdoc +2 -0
- data/lib/semantictext/document.rb +2 -0
- data/testfiles/bold-and-emphasized-text.art +42 -0
- data/testfiles/jobs-I-dont-want.art +22 -0
- data/testfiles/semantic-tag-examples.art +12 -0
- metadata +26 -4
data/CHANGELOG.rdoc
CHANGED
data/TODO.rdoc
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
==to do
|
2
|
+
* simplify the way files are imported
|
2
3
|
* tighten up error test cases on ftptag, httptag and mailtotag
|
3
4
|
* improve testing by mocking out tag factory used in tests - consider how/whether to do this
|
4
5
|
* fix path to testfiles so test can run on gem - tests only run on source at the moment
|
6
|
+
* allow bold and italic highlighting within rich text
|
5
7
|
|
6
8
|
==maybe
|
7
9
|
* support wikinames as a special custom tag
|
@@ -1,6 +1,8 @@
|
|
1
1
|
require 'semantictext/extraction_failed'
|
2
2
|
require 'semantictext/heading'
|
3
3
|
require 'semantictext/keyword_extractor'
|
4
|
+
require 'semantictext/date_extractor'
|
5
|
+
require 'semantictext/extraction_failed'
|
4
6
|
require 'semantictext/not_header_line'
|
5
7
|
require 'semantictext/paragraph'
|
6
8
|
require 'semantictext/span'
|
@@ -0,0 +1,42 @@
|
|
1
|
+
title:bold and emphasized text regression test cases
|
2
|
+
|
3
|
+
This is a *bolded* word.
|
4
|
+
This is a *bolded subsection of text* see?
|
5
|
+
|
6
|
+
This is an _emphasized_ word.
|
7
|
+
This is an _emphasized subsection of text_ see?
|
8
|
+
|
9
|
+
This is *emphasized with a [http://www.example.com] link* example.
|
10
|
+
|
11
|
+
This is _emphasized with a [http://www.example.com] link_ example.
|
12
|
+
|
13
|
+
This is an *inconsistently _nested bold* and emphasized_ text example.
|
14
|
+
|
15
|
+
What happens with *non-closed bold sections?
|
16
|
+
|
17
|
+
What happens with _non-closed emphasized sections?
|
18
|
+
|
19
|
+
What happens with isolated closed bold* sections?
|
20
|
+
|
21
|
+
What happens with isolated emphasized_ sections?
|
22
|
+
|
23
|
+
This is a _nesting test with *bold inside* the section_
|
24
|
+
|
25
|
+
This is *nesting with _emphasized text_ inside* the section.
|
26
|
+
|
27
|
+
Can *bold handle punctuation on a closing symbol?* see?
|
28
|
+
|
29
|
+
Can _emphasized handle punctuation on a closing symbol?_ see?
|
30
|
+
|
31
|
+
What about *tab handling before bold* see?
|
32
|
+
|
33
|
+
What about _tab handling before emphasied_ see?
|
34
|
+
|
35
|
+
What about *tab handling after bold* see?
|
36
|
+
|
37
|
+
What about _tab handling after emphasied_ see?
|
38
|
+
|
39
|
+
What about *tab handling either side of bold* see?
|
40
|
+
|
41
|
+
What about _tab handling either size of emphasied_ see?
|
42
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
!Jobs I don't Want
|
2
|
+
|
3
|
+
I'm finding it surprisingly easy to get shortlisted for "agile" jobs. Unfortunately, "agile" is a
|
4
|
+
word that was used at the snowbird meeting because the people there didn't reach much of a consensus.
|
5
|
+
As Kent Beck said recently, not everybody want to be "extreme", some people want to be "lean" but
|
6
|
+
_everybody_ wants to be "agile". He's suggesting that this is the case becaus the word "agile" doesn't
|
7
|
+
mean very much.
|
8
|
+
|
9
|
+
I really can't tell what people are doing when they say they're doing "agile". It just doesn't mean
|
10
|
+
anything any more. So many people have tried to widen the appeal of the term by compromising on
|
11
|
+
good practices and by trading on it's image as an innovative thing to do.
|
12
|
+
|
13
|
+
Here are the things that are important to me:
|
14
|
+
* Test-Driven Development for all production code
|
15
|
+
* Proper use of Continuous Integration to gain confidence over the production code.
|
16
|
+
* Customer-driven "user stories" that are a "token for conversation" not a definitive specification.
|
17
|
+
* When code needs lots of documentation or memory of lots of details from elsewhere in the code - something
|
18
|
+
is wrong and needs simplifying.
|
19
|
+
* Concise code rather than living with reams of voluminous crap.
|
20
|
+
* Effective code coverage and not a "more is better" total volume attitude to testing.
|
21
|
+
* Respect for all team members and an understanding that team members are participants in the design process and not merely compliant code monkeys.
|
22
|
+
* An understanding that teams should hold members jointly responsible and organise themselves to meet their comitment to the customer.
|
@@ -0,0 +1,12 @@
|
|
1
|
+
title:Examples of semantic tags
|
2
|
+
|
3
|
+
Tags don't have to be specialised hyperlinks:
|
4
|
+
* indexing marks
|
5
|
+
* classification tags
|
6
|
+
* calendar entries
|
7
|
+
* phone entries
|
8
|
+
* embed video
|
9
|
+
* embed mp3 player
|
10
|
+
* map embed/link
|
11
|
+
* statistics gatherer
|
12
|
+
* form includer
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: semantictext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dafydd Rees
|
@@ -9,10 +9,29 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-01-26 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: mocha
|
17
|
+
type: :development
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.9.8
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rcov
|
27
|
+
type: :development
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.9.6
|
34
|
+
version:
|
16
35
|
description: Semantic Text is a system for marking up plain text documents with domain-specific tags.
|
17
36
|
email: os@greenbarsoft.co.uk
|
18
37
|
executables: []
|
@@ -55,8 +74,11 @@ files:
|
|
55
74
|
- test/test_document.rb
|
56
75
|
- test/test_export.rb
|
57
76
|
- test/test_keywordextractor.rb
|
77
|
+
- testfiles/bold-and-emphasized-text.art
|
58
78
|
- testfiles/complex.art
|
79
|
+
- testfiles/jobs-I-dont-want.art
|
59
80
|
- testfiles/regression-exportsample.txt
|
81
|
+
- testfiles/semantic-tag-examples.art
|
60
82
|
- testfiles/simple.art
|
61
83
|
- CHANGELOG.rdoc
|
62
84
|
- COPYING
|