Page Content
A simple solution to tedious tasks
Source text
Raw text can contain single-level inline tags with attrs⁠: mark⁠, abbr⁠, time⁠, b⁠, strong⁠, em⁠, i⁠, code⁠, a⁠, strike⁠, s and span⁠. Typography HTML with other tags is not stable yet.
The limits of (algorithmic)predictions[1] are abundantly clear in the Niemann mess. Chess observers have tried to use them to evaluate Niemann’s[2] play, only to fall into a morass of argument One analysis finds that his play falls within an unsuspicious range while another finds his performances improbable.
“At the end of the day when we’re talking about looking at the games, there are probably only a handful of people in the world who can say whether these moves look like they’re human, or not human,” Nakamura said. “There’s a limited pool of people who can have opinions that are legitimate. That also makes it very difficult. There’s really no agreement.”[3]
Carlsen has called for better methods of detection and added, “I hope that the truth on this matter comes out, whatever it may be.” But the chess world may discover that machine intelligence[4] or tech engines don’t solve its new problems any more efficiently than an age-old human practice: the honor code, the development of conscience, which solves problems before they begin. As the Russian chess grandmaster Alexander Grischuck once remarked about the explosion of chess online and the proliferation of tools with which to cheat, ultimately, “Everything rests on decency.”[5]
Posted on https://www.washingtonpost.com/sports/2022/09/27/magnus-carlsen-hans-niemann-chess-cheating-controversy/, by S. Jenkins
Extracting custom markup
Save list of custom tags⁠:
[
{
"params": {
"type": "strong"
},
"body": "Niemann’s[2]",
"range": "135...147"
},
{
"params": {
"type": "emphasis"
},
"body": "At the end of the day",
"range": "312...333"
},
{
"params": {
"type": "bold"
},
"body": "Alexander Grischuck",
"range": "1085...1104"
},
{
"params": {
"href": "https://www.washingtonpost.com/people/sally-jenkins/",
"type": "link"
},
"body": "S. Jenkins",
"range": "1373...1383"
}
]
Tokenizing
We have developed our own Natural Language Processor for extract simple forms and word groups with saving punctuation into source text⁠.
Example of tokenization of simple text forms (molecules):
Example extracting molecules from text⁠:
Extracting sentences
We extract sentences for perfect text analysis with saving punctuation between sentences.
Link processing
Source text:
Posted on https://www.washingtonpost.com/sports/2022/09/27/magnus-carlsen-hans-niemann-chess-cheating-controversy/, by S. Jenkins
Generate links:
Posted on https://www.washingtonpost.com/sports/2022/09/27/magnus-carlsen-hans-niemann-chess-cheating-controversy/⁠, by S. Jenkins
Generate and shorten hyperlinks:
Posted on washingtonpost.com⁠, by S. Jenkins
Grouping molecules
Depending on the type of user device, line length and other features of the text⁠, the Typograph selects the optimal typography options, for example⁠:
{
sentence_first_word_breake_min_length: 9,
group_first_word_breake_min_length: 7,
sentence_last_word_breake_min_length: 9,
group_last_word_breake_min_length: 7,
normal_brake_min_word_length: 3,
normal_brake_min_word_length_soft: 4,
max_subgoup_length_for_normal_string: 50,
max_subgoup_length_for_short_string: 25
}
For each type of user's device, the Typograph works in two modes⁠: the mandatory combination of words into groups (⁠nobr groups⁠) and the combination of words into groups when the conditions for presenting the content allow it (nobrsoft groups).
After extracting the molecules and calculating the parameters of the words⁠, the Typograph combines the words into groups⁠. An example of Typograph's work in soft mode when nobr groups are placed⁠:
The limits of (algorithmic) predictions⁠[1] are abundantly clear in the Niemann mess⁠. Chess observers have tried to use them to evaluate Niemann’s⁠[2] play⁠, only to fall into a morass of argument One analysis finds that his play falls within an unsuspicious range while another finds his performances improbable.
“⁠At the end of the day when we’re talking about looking at the games⁠, there are probably only a handful of people in the world who can say whether these moves look like they’re human⁠, or not human⁠,” Nakamura said. “⁠There’s a limited pool of people who can have opinions that are legitimate⁠. That also makes it very difficult. There’s really no agreement⁠.”
Carlsen has called for better methods of detection and added⁠, “⁠I hope that the truth on this matter comes out⁠, whatever it may be⁠.” But the chess world may discover that machine intelligence⁠[4] or tech engines don’t solve its new problems any more efficiently than an age-old human practice: the honor code⁠, the development of conscience⁠, which solves problems before they begin⁠. As the Russian chess grandmaster Alexander Grischuck once remarked about the explosion of chess online and the proliferation of tools with which to cheat⁠, ultimately, “Everything rests on decency⁠.”
Posted on washingtonpost.com⁠, by S. Jenkins
An example of Typograph's work in hard mode when nobrsoft groups are placed⁠:
The limits of (algorithmic) predictions⁠[1] are abundantly clear in the Niemann mess⁠. Chess observers have tried to use them to evaluate Niemann’s⁠[2] play⁠, only to fall into a morass of argument One analysis finds that his play falls within an unsuspicious range while another finds his performances improbable.
“⁠At the end of the day when we’re talking about looking at the games⁠, there are probably only a handful of people in the world who can say whether these moves look like they’re human⁠, or not human⁠,” Nakamura said. “⁠There’s a limited pool of people who can have opinions that are legitimate⁠. That also makes it very difficult. There’s really no agreement⁠.”
Carlsen has called for better methods of detection and added⁠, “⁠I hope that the truth on this matter comes out⁠, whatever it may be⁠.” But the chess world may discover that machine intelligence⁠[4] or tech engines don’t solve its new problems any more efficiently than an age-old human practice: the honor code⁠, the development of conscience⁠, which solves problems before they begin⁠. As the Russian chess grandmaster Alexander Grischuck once remarked about the explosion of chess online and the proliferation of tools with which to cheat⁠, ultimately, “Everything rests on decency⁠.”
Posted on washingtonpost.com⁠, by S. Jenkins
What's more⁠, you can use the Typograph in responsive mode and set CSS breakpoints yourself to change the mode depending on your preference. Check out the demo below⁠!
.parent_block_name {
white-space: normal;
.nh, .ns { white-space: normal; }
// select the breakpoints of your choice for block or document
@media screen and (min-width: 750px) {
.nh { white-space: nowrap; }
}
@media screen and (min-width: 1000px) {
.ns { white-space: nowrap; }
}
}
For best result you can use CSS Container Queries⁠, it already works natively in some browsers.