-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from ferllop/master
General translation improvement and autogenerate summary
- Loading branch information
Showing
23 changed files
with
473 additions
and
414 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,42 @@ | ||
#!/usr/bin/env perl -n | ||
use Encode; | ||
use utf8; | ||
use open ':encoding(UTF-8)', ':std'; | ||
|
||
# This stupid function makes to decode only the first file. | ||
# If I don't do this, perl is not doing it by himself and I don't know why. | ||
# Even the headers of this file are telling to use utf8 encoding! | ||
# But does not do it in the first file that reads. | ||
# And you do it in all the files it inverts to only be ok in the first file. PFFF | ||
# Two hours of research is enough! | ||
# At least... The function is pure!! | ||
sub decode_if_is_file { | ||
my ($first_file, $line) = @_; | ||
return ($ARGV eq $first_file) ? decode_utf8($line) : $line; | ||
} | ||
|
||
BEGIN { | ||
print "# Sumario\n\n"; | ||
} | ||
|
||
# Trim whitespace | ||
s/^\s+|\s+$//g; | ||
|
||
# Print headlines | ||
if (/^# (.*)/) { | ||
$headline = decode_if_is_file("README.md", $1); | ||
print "* [$headline]($ARGV)\n"; | ||
} | ||
|
||
# Print subheadlines | ||
if (/^## (.*)/) { | ||
$subheadline = decode_if_is_file("README.md", $1); | ||
my $anchor = lc $subheadline; | ||
|
||
# Remove all but word characters and whitespace | ||
$anchor =~ s/[^\wö ]//g; | ||
# Replace whitespace with dashes | ||
$anchor =~ tr/ /-/d; | ||
|
||
print " * [$subheadline]($ARGV#$anchor)\n"; | ||
} |
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
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
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
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
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 |
---|---|---|
|
@@ -146,7 +146,7 @@ const nothing = Maybe.of(null); | |
``` | ||
|
||
|
||
## reject | ||
## reject | ||
|
||
```js | ||
// reject :: a -> Task a b | ||
|
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
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
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 |
---|---|---|
|
@@ -9,5 +9,6 @@ | |
], | ||
"structure": { | ||
"summary": "SUMMARY-es.md" | ||
} | ||
}, | ||
"language": "es" | ||
} |
Oops, something went wrong.