Updated frTypo library
This commit is contained in:
parent
01ae744c7b
commit
61411b26de
@ -21,7 +21,14 @@
|
||||
@licend The above is the entire license notice for the JavaScript code in this page.
|
||||
###
|
||||
|
||||
$(document).on 'turbolinks:load', ->
|
||||
# La forme principale pour gérer les ponctuations hautes après une lettre,
|
||||
# ou en début de nœud html,
|
||||
# et qui peut contenir des espaces
|
||||
regexp = /(^|[\wàéèêç])\s*([!?:;»%€¢]+)([\s]|[^\w\/]|$)/g
|
||||
|
||||
regexpPost = /([«])\s*([\w])/g
|
||||
|
||||
$ ->
|
||||
if $('html').attr('lang') == 'fr'
|
||||
# Ne devrait s'appliquer qu'à une page en français
|
||||
$('body *').contents().filter ->
|
||||
@ -40,7 +47,3 @@ $(document).on 'turbolinks:load', ->
|
||||
this.nodeValue
|
||||
.replace(regexp, '$1<span class="finePre">$2</span>$3')
|
||||
.replace(regexpPost, '<span class="finePost">$1</span>$2')
|
||||
|
||||
regexp = /([\w])([!?:;»%])([\s]|[^\w\/]|$)/g
|
||||
|
||||
regexpPost = /([«])([\w])/g
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Loading…
Reference in New Issue
Block a user