Skip to content

Instantly share code, notes, and snippets.

@eush77
Created June 1, 2017 14:08
Show Gist options
  • Save eush77/b418900252b9590402497000130788ac to your computer and use it in GitHub Desktop.
Save eush77/b418900252b9590402497000130788ac to your computer and use it in GitHub Desktop.
Simple non-breaking space fixer for Russian language
#!/bin/sed -rf
#
# Simple non-breaking space fixer for Russian language.
#
# Usage: nbsp-ru FILE_IN > FILE_OUT
#
s:\b(без|безо|в|во|для|до|за|из|из-за|из-под|изо|к|ко|на|над|о|об|от|ото|по|под|подо|при|про|ради|с|со|у) :\1 :gI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment