Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
intermediate-format
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bibliothek-der-neologie
intermediate-format
Commits
13eb660d
Commit
13eb660d
authored
5 years ago
by
Michelle Weidling
Browse files
Options
Downloads
Plain Diff
Merge branch 'release/v1.2'
parents
ce7b979d
36c0cb9f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+4
-0
4 additions, 0 deletions
CHANGELOG.md
build.properties
+1
-1
1 addition, 1 deletion
build.properties
modules/intermediate_format/preprocessing.xqm
+25
-3
25 additions, 3 deletions
modules/intermediate_format/preprocessing.xqm
with
30 additions
and
4 deletions
CHANGELOG.md
+
4
−
0
View file @
13eb660d
...
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
...
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]
## [Unreleased]
## v1.2 - 2019-06-28
## Added
-
added mechanism for spaced out text
## v1.1.1 - 2019-02-27
## v1.1.1 - 2019-02-27
### Fixed
### Fixed
-
fix bug in tei:row handling
-
fix bug in tei:row handling
This diff is collapsed.
Click to expand it.
build.properties
+
1
−
1
View file @
13eb660d
project.name
=
http://bdn-edition.de/intermediate_format-develop
project.name
=
http://bdn-edition.de/intermediate_format-develop
project.version
=
1.
1.1
project.version
=
1.
2
project.title
=
BdN Intermediate Format
project.title
=
BdN Intermediate Format
project.abbrev
=
interformat-develop
project.abbrev
=
interformat-develop
project.processorversion
=
4.6.0
project.processorversion
=
4.6.0
...
...
This diff is collapsed.
Click to expand it.
modules/intermediate_format/preprocessing.xqm
+
25
−
3
View file @
13eb660d
xquery
version
"3.
0
"
;
xquery
version
"3.
1
"
;
(:~
(:~
: PREPROCESSING Module ("pre", "http://bdn.edition.de/intermediate_format/preprocessing")
: PREPROCESSING Module ("pre", "http://bdn.edition.de/intermediate_format/preprocessing")
: *******************************************************************************************
: *******************************************************************************************
...
@@ -261,13 +261,26 @@ declare function pre:preprocessing
...
@@ -261,13 +261,26 @@ declare function pre:preprocessing
)
)
case
element
(
hi
)
return
(
case
element
(
hi
)
return
(
if
(
$node
[
@rend
=
'right-aligned'
or
@rend
=
'center-aligned'
])
then
(
if
(
$node
[
@rend
=
(
'right-aligned'
,
'center-aligned'
)
])
then
(
element
{
'aligned'
}
{
element
{
'aligned'
}
{
$node
/
@
*,
$node
/
@
*,
pre:preprocessing
(
$node
/
node
()
,
$replace-whitespace
)
pre:preprocessing
(
$node
/
node
()
,
$replace-whitespace
)
}
}
)
)
else
(
else
if
(
$node
[
@rend
=
'spaced-out'
])
then
element
{
'hi'
}
{
$node
/
@
*,
let
$text
:=
$node
/
text
()
let
$str-length
:=
string-length
(
$text
)
let
$spaced-out
:=
for
$iii
in
1
to
$str-length
return
if
(
not
(
$iii
=
$str-length
))
then
(
substring
(
$text
,
$iii
,
1
)
,
"@"
)
else
substring
(
$text
,
$iii
,
1
)
return
string-join
(
$spaced-out
,
''
)
}
else
(
pre:default-element
(
$node
,
pre:preprocessing
(
$node
/
node
()
,
$replace-whitespace
)
)
pre:default-element
(
$node
,
pre:preprocessing
(
$node
/
node
()
,
$replace-whitespace
)
)
)
)
)
)
...
@@ -319,3 +332,12 @@ as element(editorial-notes) {
...
@@ -319,3 +332,12 @@ as element(editorial-notes) {
pre:default-element
(
$editorial-note
,
pre:preprocessing
(
$editorial-note
/
node
()
,
$replace-whitespace
))
pre:default-element
(
$editorial-note
,
pre:preprocessing
(
$editorial-note
/
node
()
,
$replace-whitespace
))
}
}
};
};
declare
function
pre:tokenize-by-character
(
$text
as
text
())
as
xs:string
*
{
for
$iii
in
1
to
string-length
(
$text
)
return
substring
(
$text
,
$iii
,
1
)
};
declare
function
pre:add-spaces-between-chars
(
$characters
as
xs:string
*
)
as
xs:string
{
string-join
(
$characters
,
'@'
)
};
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment