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
<style type="text/css"> | |
article em{ | |
font-weight:normal; | |
font-style: normal; | |
margin:0 0.1em; | |
padding:0.1em 0.2em; | |
background:#fcfc60 !important; | |
background:linear-gradient(to bottom, transparent 60%, #FF6F61 60%) !important; | |
} | |
article i{ |
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
.entry-content { | |
font-size: 17px; | |
} |
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
.entry-content { | |
line-height: 1.6em; | |
letter-spacing: 0.05em; | |
} |
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
import codecs | |
import re | |
import random | |
from janome.tokenizer import Tokenizer | |
def buildWordDict(text): | |
# 改行や空白、ふりがなを消す | |
delete_symbol = ["|", " "] | |
delete_expression = ["《.*》", "[.*\]", "\r", "\n"] | |
for ds in delete_symbol: |