# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'Layout.ui'
#
# Created by: PyQt5 UI code generator 5.15.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(800, 600)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
        MainWindow.setSizePolicy(sizePolicy)
        MainWindow.setSizeIncrement(QtCore.QSize(0, 0))
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.AppTabWidget = QtWidgets.QTabWidget(self.centralwidget)
        self.AppTabWidget.setObjectName("AppTabWidget")
        self.tab_stt = QtWidgets.QWidget()
        self.tab_stt.setObjectName("tab_stt")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.tab_stt)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.horizontalLayout_15 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_15.setObjectName("horizontalLayout_15")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout()
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.STTStatus = QtWidgets.QLabel(self.tab_stt)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.STTStatus.sizePolicy().hasHeightForWidth())
        self.STTStatus.setSizePolicy(sizePolicy)
        self.STTStatus.setObjectName("STTStatus")
        self.verticalLayout.addWidget(self.STTStatus)
        self.verticalLayout_6.addLayout(self.verticalLayout)
        self.verticalLayout_4 = QtWidgets.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.toolBox = QtWidgets.QToolBox(self.tab_stt)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.toolBox.sizePolicy().hasHeightForWidth())
        self.toolBox.setSizePolicy(sizePolicy)
        self.toolBox.setMinimumSize(QtCore.QSize(200, 0))
        self.toolBox.setObjectName("toolBox")
        self.page_3 = QtWidgets.QWidget()
        self.page_3.setGeometry(QtCore.QRect(0, 0, 200, 378))
        self.page_3.setObjectName("page_3")
        self.verticalLayout_12 = QtWidgets.QVBoxLayout(self.page_3)
        self.verticalLayout_12.setObjectName("verticalLayout_12")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout()
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.CutSTTBtn = QtWidgets.QPushButton(self.page_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.CutSTTBtn.sizePolicy().hasHeightForWidth())
        self.CutSTTBtn.setSizePolicy(sizePolicy)
        self.CutSTTBtn.setMinimumSize(QtCore.QSize(90, 30))
        self.CutSTTBtn.setSizeIncrement(QtCore.QSize(0, 0))
        self.CutSTTBtn.setObjectName("CutSTTBtn")
        self.verticalLayout_5.addWidget(self.CutSTTBtn)
        self.ClearSTTBtn = QtWidgets.QPushButton(self.page_3)
        self.ClearSTTBtn.setObjectName("ClearSTTBtn")
        self.verticalLayout_5.addWidget(self.ClearSTTBtn)
        self.RefToYDBtn = QtWidgets.QPushButton(self.page_3)
        self.RefToYDBtn.setObjectName("RefToYDBtn")
        self.verticalLayout_5.addWidget(self.RefToYDBtn)
        self.GTranslateBtn = QtWidgets.QPushButton(self.page_3)
        self.GTranslateBtn.setObjectName("GTranslateBtn")
        self.verticalLayout_5.addWidget(self.GTranslateBtn, 0, QtCore.Qt.AlignTop)
        self.verticalLayout_12.addLayout(self.verticalLayout_5)
        self.verticalLayout_11 = QtWidgets.QVBoxLayout()
        self.verticalLayout_11.setObjectName("verticalLayout_11")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.WrapTextBtn_1 = QtWidgets.QPushButton(self.page_3)
        self.WrapTextBtn_1.setObjectName("WrapTextBtn_1")
        self.horizontalLayout_4.addWidget(self.WrapTextBtn_1, 0, QtCore.Qt.AlignTop)
        self.WrapTextBtn_2 = QtWidgets.QPushButton(self.page_3)
        self.WrapTextBtn_2.setObjectName("WrapTextBtn_2")
        self.horizontalLayout_4.addWidget(self.WrapTextBtn_2, 0, QtCore.Qt.AlignTop)
        self.verticalLayout_11.addLayout(self.horizontalLayout_4)
        self.verticalLayout_12.addLayout(self.verticalLayout_11)
        self.toolBox.addItem(self.page_3, "")
        self.page_4 = QtWidgets.QWidget()
        self.page_4.setGeometry(QtCore.QRect(0, 0, 200, 378))
        self.page_4.setObjectName("page_4")
        self.toolBox.addItem(self.page_4, "")
        self.verticalLayout_4.addWidget(self.toolBox)
        self.verticalLayout_6.addLayout(self.verticalLayout_4)
        self.horizontalLayout_15.addLayout(self.verticalLayout_6)
        self.horizontalLayout_14 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_14.setObjectName("horizontalLayout_14")
        self.STTTextArea = QtWidgets.QTextBrowser(self.tab_stt)
        font = QtGui.QFont()
        font.setFamily("微軟正黑體")
        font.setPointSize(14)
        self.STTTextArea.setFont(font)
        self.STTTextArea.setMouseTracking(True)
        self.STTTextArea.setUndoRedoEnabled(True)
        self.STTTextArea.setReadOnly(False)
        self.STTTextArea.setObjectName("STTTextArea")
        self.horizontalLayout_14.addWidget(self.STTTextArea)
        self.horizontalLayout_15.addLayout(self.horizontalLayout_14)
        self.horizontalLayout.addLayout(self.horizontalLayout_15)
        self.AppTabWidget.addTab(self.tab_stt, "")
        self.tab_gtranslate = QtWidgets.QWidget()
        self.tab_gtranslate.setObjectName("tab_gtranslate")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.tab_gtranslate)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.GTView = QtWebEngineWidgets.QWebEngineView(self.tab_gtranslate)
        self.GTView.setObjectName("GTView")
        self.horizontalLayout_3.addWidget(self.GTView)
        self.horizontalLayout_5.addLayout(self.horizontalLayout_3)
        self.AppTabWidget.addTab(self.tab_gtranslate, "")
        self.tab_ydict = QtWidgets.QWidget()
        self.tab_ydict.setObjectName("tab_ydict")
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.tab_ydict)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.YDView = QtWebEngineWidgets.QWebEngineView(self.tab_ydict)
        self.YDView.setObjectName("YDView")
        self.horizontalLayout_2.addWidget(self.YDView)
        self.horizontalLayout_6.addLayout(self.horizontalLayout_2)
        self.AppTabWidget.addTab(self.tab_ydict, "")
        self.tab_excerpt = QtWidgets.QWidget()
        self.tab_excerpt.setObjectName("tab_excerpt")
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout(self.tab_excerpt)
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.verticalLayout_13 = QtWidgets.QVBoxLayout()
        self.verticalLayout_13.setObjectName("verticalLayout_13")
        self.horizontalLayout_17 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_17.setObjectName("horizontalLayout_17")
        self.horizontalLayout_16 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_16.setObjectName("horizontalLayout_16")
        self.label = QtWidgets.QLabel(self.tab_excerpt)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setObjectName("label")
        self.horizontalLayout_16.addWidget(self.label, 0, QtCore.Qt.AlignLeft)
        self.horizontalLayout_17.addLayout(self.horizontalLayout_16)
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.ExcerptBox = QtWidgets.QTextBrowser(self.tab_excerpt)
        self.ExcerptBox.setMaximumSize(QtCore.QSize(16777215, 200))
        font = QtGui.QFont()
        font.setFamily("微軟正黑體")
        font.setPointSize(12)
        self.ExcerptBox.setFont(font)
        self.ExcerptBox.setUndoRedoEnabled(True)
        self.ExcerptBox.setReadOnly(False)
        self.ExcerptBox.setObjectName("ExcerptBox")
        self.horizontalLayout_8.addWidget(self.ExcerptBox)
        self.horizontalLayout_17.addLayout(self.horizontalLayout_8)
        self.verticalLayout_13.addLayout(self.horizontalLayout_17)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.verticalLayout_13.addItem(spacerItem)
        self.horizontalLayout_20 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_20.setObjectName("horizontalLayout_20")
        self.horizontalLayout_18 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_18.setObjectName("horizontalLayout_18")
        self.label_4 = QtWidgets.QLabel(self.tab_excerpt)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
        self.label_4.setSizePolicy(sizePolicy)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout_18.addWidget(self.label_4)
        self.horizontalLayout_20.addLayout(self.horizontalLayout_18)
        self.horizontalLayout_19 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_19.setObjectName("horizontalLayout_19")
        self.SlugBox = QtWidgets.QLineEdit(self.tab_excerpt)
        font = QtGui.QFont()
        font.setFamily("微軟正黑體")
        font.setPointSize(12)
        self.SlugBox.setFont(font)
        self.SlugBox.setObjectName("SlugBox")
        self.horizontalLayout_19.addWidget(self.SlugBox)
        self.FormatSlugBtn = QtWidgets.QPushButton(self.tab_excerpt)
        self.FormatSlugBtn.setMinimumSize(QtCore.QSize(0, 30))
        self.FormatSlugBtn.setObjectName("FormatSlugBtn")
        self.horizontalLayout_19.addWidget(self.FormatSlugBtn)
        self.horizontalLayout_20.addLayout(self.horizontalLayout_19)
        self.verticalLayout_13.addLayout(self.horizontalLayout_20)
        self.verticalLayout_9 = QtWidgets.QVBoxLayout()
        self.verticalLayout_9.setObjectName("verticalLayout_9")
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.verticalLayout_9.addItem(spacerItem1)
        self.MakeExcerptBtn = QtWidgets.QPushButton(self.tab_excerpt)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.MakeExcerptBtn.sizePolicy().hasHeightForWidth())
        self.MakeExcerptBtn.setSizePolicy(sizePolicy)
        self.MakeExcerptBtn.setMinimumSize(QtCore.QSize(0, 40))
        self.MakeExcerptBtn.setSizeIncrement(QtCore.QSize(0, 0))
        font = QtGui.QFont()
        font.setFamily("微軟正黑體")
        font.setPointSize(12)
        self.MakeExcerptBtn.setFont(font)
        self.MakeExcerptBtn.setObjectName("MakeExcerptBtn")
        self.verticalLayout_9.addWidget(self.MakeExcerptBtn)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.verticalLayout_9.addItem(spacerItem2)
        self.verticalLayout_13.addLayout(self.verticalLayout_9)
        self.horizontalLayout_23 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_23.setObjectName("horizontalLayout_23")
        self.verticalLayout_10 = QtWidgets.QVBoxLayout()
        self.verticalLayout_10.setObjectName("verticalLayout_10")
        self.verticalLayout_18 = QtWidgets.QVBoxLayout()
        self.verticalLayout_18.setObjectName("verticalLayout_18")
        self.verticalLayout_10.addLayout(self.verticalLayout_18)
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.CopyPureExcerptBtn = QtWidgets.QPushButton(self.tab_excerpt)
        self.CopyPureExcerptBtn.setMinimumSize(QtCore.QSize(0, 30))
        self.CopyPureExcerptBtn.setObjectName("CopyPureExcerptBtn")
        self.verticalLayout_3.addWidget(self.CopyPureExcerptBtn)
        self.verticalLayout_10.addLayout(self.verticalLayout_3)
        self.verticalLayout_8 = QtWidgets.QVBoxLayout()
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.PureExcerptBox = QtWidgets.QTextBrowser(self.tab_excerpt)
        font = QtGui.QFont()
        font.setFamily("微軟正黑體")
        font.setPointSize(12)
        self.PureExcerptBox.setFont(font)
        self.PureExcerptBox.setUndoRedoEnabled(True)
        self.PureExcerptBox.setReadOnly(False)
        self.PureExcerptBox.setObjectName("PureExcerptBox")
        self.verticalLayout_8.addWidget(self.PureExcerptBox)
        self.verticalLayout_10.addLayout(self.verticalLayout_8)
        self.horizontalLayout_23.addLayout(self.verticalLayout_10)
        self.verticalLayout_16 = QtWidgets.QVBoxLayout()
        self.verticalLayout_16.setObjectName("verticalLayout_16")
        self.verticalLayout_14 = QtWidgets.QVBoxLayout()
        self.verticalLayout_14.setObjectName("verticalLayout_14")
        self.CopyFBExcerptBtn = QtWidgets.QPushButton(self.tab_excerpt)
        self.CopyFBExcerptBtn.setMinimumSize(QtCore.QSize(0, 30))
        self.CopyFBExcerptBtn.setObjectName("CopyFBExcerptBtn")
        self.verticalLayout_14.addWidget(self.CopyFBExcerptBtn)
        self.verticalLayout_16.addLayout(self.verticalLayout_14)
        self.verticalLayout_15 = QtWidgets.QVBoxLayout()
        self.verticalLayout_15.setObjectName("verticalLayout_15")
        self.FBExcerptBox = QtWidgets.QTextBrowser(self.tab_excerpt)
        font = QtGui.QFont()
        font.setFamily("微軟正黑體")
        font.setPointSize(12)
        self.FBExcerptBox.setFont(font)
        self.FBExcerptBox.setUndoRedoEnabled(True)
        self.FBExcerptBox.setReadOnly(False)
        self.FBExcerptBox.setObjectName("FBExcerptBox")
        self.verticalLayout_15.addWidget(self.FBExcerptBox)
        self.verticalLayout_16.addLayout(self.verticalLayout_15)
        self.horizontalLayout_23.addLayout(self.verticalLayout_16)
        self.verticalLayout_13.addLayout(self.horizontalLayout_23)
        self.horizontalLayout_9.addLayout(self.verticalLayout_13)
        self.AppTabWidget.addTab(self.tab_excerpt, "")
        self.tab_post_processor = QtWidgets.QWidget()
        self.tab_post_processor.setObjectName("tab_post_processor")
        self.verticalLayout_21 = QtWidgets.QVBoxLayout(self.tab_post_processor)
        self.verticalLayout_21.setObjectName("verticalLayout_21")
        self.verticalLayout_19 = QtWidgets.QVBoxLayout()
        self.verticalLayout_19.setObjectName("verticalLayout_19")
        self.verticalLayout_22 = QtWidgets.QVBoxLayout()
        self.verticalLayout_22.setObjectName("verticalLayout_22")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.FormatParagraphBtn = QtWidgets.QPushButton(self.tab_post_processor)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.FormatParagraphBtn.sizePolicy().hasHeightForWidth())
        self.FormatParagraphBtn.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.FormatParagraphBtn.setFont(font)
        self.FormatParagraphBtn.setFlat(False)
        self.FormatParagraphBtn.setObjectName("FormatParagraphBtn")
        self.horizontalLayout_7.addWidget(self.FormatParagraphBtn)
        self.TranslateResultBtn = QtWidgets.QPushButton(self.tab_post_processor)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.TranslateResultBtn.sizePolicy().hasHeightForWidth())
        self.TranslateResultBtn.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.TranslateResultBtn.setFont(font)
        self.TranslateResultBtn.setObjectName("TranslateResultBtn")
        self.horizontalLayout_7.addWidget(self.TranslateResultBtn)
        self.OpenCCBtn = QtWidgets.QPushButton(self.tab_post_processor)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.OpenCCBtn.sizePolicy().hasHeightForWidth())
        self.OpenCCBtn.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.OpenCCBtn.setFont(font)
        self.OpenCCBtn.setObjectName("OpenCCBtn")
        self.horizontalLayout_7.addWidget(self.OpenCCBtn)
        self.ClearPostMaterialBtn = QtWidgets.QPushButton(self.tab_post_processor)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.ClearPostMaterialBtn.sizePolicy().hasHeightForWidth())
        self.ClearPostMaterialBtn.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.ClearPostMaterialBtn.setFont(font)
        self.ClearPostMaterialBtn.setObjectName("ClearPostMaterialBtn")
        self.horizontalLayout_7.addWidget(self.ClearPostMaterialBtn)
        self.UpdateCNTWMapBtn = QtWidgets.QPushButton(self.tab_post_processor)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.UpdateCNTWMapBtn.setFont(font)
        self.UpdateCNTWMapBtn.setObjectName("UpdateCNTWMapBtn")
        self.horizontalLayout_7.addWidget(self.UpdateCNTWMapBtn)
        spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem3)
        self.verticalLayout_22.addLayout(self.horizontalLayout_7)
        spacerItem4 = QtWidgets.QSpacerItem(40, 10, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.verticalLayout_22.addItem(spacerItem4)
        self.label_2 = QtWidgets.QLabel(self.tab_post_processor)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_2.setFont(font)
        self.label_2.setObjectName("label_2")
        self.verticalLayout_22.addWidget(self.label_2)
        self.PostMaterialBox = QtWidgets.QPlainTextEdit(self.tab_post_processor)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.PostMaterialBox.sizePolicy().hasHeightForWidth())
        self.PostMaterialBox.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.PostMaterialBox.setFont(font)
        self.PostMaterialBox.setObjectName("PostMaterialBox")
        self.verticalLayout_22.addWidget(self.PostMaterialBox)
        self.verticalLayout_19.addLayout(self.verticalLayout_22)
        self.verticalLayout_23 = QtWidgets.QVBoxLayout()
        self.verticalLayout_23.setObjectName("verticalLayout_23")
        spacerItem5 = QtWidgets.QSpacerItem(40, 10, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.verticalLayout_23.addItem(spacerItem5)
        self.label_3 = QtWidgets.QLabel(self.tab_post_processor)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_3.setFont(font)
        self.label_3.setObjectName("label_3")
        self.verticalLayout_23.addWidget(self.label_3)
        self.PostProcessResultBox = QtWidgets.QPlainTextEdit(self.tab_post_processor)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.PostProcessResultBox.setFont(font)
        self.PostProcessResultBox.setObjectName("PostProcessResultBox")
        self.verticalLayout_23.addWidget(self.PostProcessResultBox)
        self.verticalLayout_19.addLayout(self.verticalLayout_23)
        self.verticalLayout_21.addLayout(self.verticalLayout_19)
        self.AppTabWidget.addTab(self.tab_post_processor, "")
        self.verticalLayout_2.addWidget(self.AppTabWidget)
        self.horizontalLayout_12 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_12.setContentsMargins(10, -1, -1, -1)
        self.horizontalLayout_12.setObjectName("horizontalLayout_12")
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_10.setContentsMargins(-1, -1, 0, -1)
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.StatusBar = QtWidgets.QLabel(self.centralwidget)
        self.StatusBar.setObjectName("StatusBar")
        self.horizontalLayout_10.addWidget(self.StatusBar)
        self.horizontalLayout_12.addLayout(self.horizontalLayout_10)
        self.horizontalLayout_11 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_11.setContentsMargins(0, -1, -1, -1)
        self.horizontalLayout_11.setObjectName("horizontalLayout_11")
        self.horizontalLayout_12.addLayout(self.horizontalLayout_11)
        self.verticalLayout_2.addLayout(self.horizontalLayout_12)
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar_default = QtWidgets.QStatusBar(MainWindow)
        self.statusbar_default.setObjectName("statusbar_default")
        MainWindow.setStatusBar(self.statusbar_default)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setEnabled(True)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 21))
        self.menubar.setObjectName("menubar")
        self.menu = QtWidgets.QMenu(self.menubar)
        self.menu.setObjectName("menu")
        MainWindow.setMenuBar(self.menubar)
        self.action_STT_Toggle = QtWidgets.QAction(MainWindow)
        self.action_STT_Toggle.setObjectName("action_STT_Toggle")
        self.menu.addAction(self.action_STT_Toggle)
        self.menubar.addAction(self.menu.menuAction())

        self.retranslateUi(MainWindow)
        self.AppTabWidget.setCurrentIndex(0)
        self.toolBox.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "部落格文章工廠"))
        self.STTStatus.setText(_translate("MainWindow", "語音辨識狀態：未啟用 X"))
        self.CutSTTBtn.setText(_translate("MainWindow", "剪下所有文字 ( Ctrl+0 )"))
        self.ClearSTTBtn.setText(_translate("MainWindow", "清除所有文字"))
        self.RefToYDBtn.setText(_translate("MainWindow", "剪貼簿查字典  ( Ctrl+1 )"))
        self.GTranslateBtn.setText(_translate("MainWindow", "剪貼簿查\n"
"Google 翻譯 ( Ctrl+2 )"))
        self.WrapTextBtn_1.setText(_translate("MainWindow", "「」\n"
"( Ctrl+= )"))
        self.WrapTextBtn_2.setText(_translate("MainWindow", "（）\n"
"( Ctrl+( )"))
        self.toolBox.setItemText(self.toolBox.indexOf(self.page_3), _translate("MainWindow", "Page 1"))
        self.toolBox.setItemText(self.toolBox.indexOf(self.page_4), _translate("MainWindow", "Page 2"))
        self.AppTabWidget.setTabText(self.AppTabWidget.indexOf(self.tab_stt), _translate("MainWindow", "語音轉文字"))
        self.AppTabWidget.setTabText(self.AppTabWidget.indexOf(self.tab_gtranslate), _translate("MainWindow", "Google 翻譯"))
        self.AppTabWidget.setTabText(self.AppTabWidget.indexOf(self.tab_ydict), _translate("MainWindow", "Yahoo 字典"))
        self.label.setText(_translate("MainWindow", "文章摘要："))
        self.label_4.setText(_translate("MainWindow", "文章代稱："))
        self.FormatSlugBtn.setText(_translate("MainWindow", "格式化並複製"))
        self.MakeExcerptBtn.setText(_translate("MainWindow", "產生摘要"))
        self.CopyPureExcerptBtn.setText(_translate("MainWindow", "複製純摘要"))
        self.CopyFBExcerptBtn.setText(_translate("MainWindow", "複製 FB 摘要"))
        self.AppTabWidget.setTabText(self.AppTabWidget.indexOf(self.tab_excerpt), _translate("MainWindow", "文章摘要產生器"))
        self.FormatParagraphBtn.setText(_translate("MainWindow", "格式化段落"))
        self.TranslateResultBtn.setText(_translate("MainWindow", "翻譯處理結果"))
        self.OpenCCBtn.setText(_translate("MainWindow", "進行 OpenCC 處理"))
        self.ClearPostMaterialBtn.setText(_translate("MainWindow", "清除資料"))
        self.UpdateCNTWMapBtn.setText(_translate("MainWindow", "更新支語替換表"))
        self.label_2.setText(_translate("MainWindow", "文章素材原文"))
        self.label_3.setText(_translate("MainWindow", "處理結果"))
        self.AppTabWidget.setTabText(self.AppTabWidget.indexOf(self.tab_post_processor), _translate("MainWindow", "文章素材處理器"))
        self.StatusBar.setText(_translate("MainWindow", "無狀態"))
        self.menu.setTitle(_translate("MainWindow", "動作"))
        self.action_STT_Toggle.setText(_translate("MainWindow", "開始語音辨識並轉成文字(&R)"))
        self.action_STT_Toggle.setToolTip(_translate("MainWindow", "開始語音辨識並轉成文字(&R)"))
        self.action_STT_Toggle.setShortcut(_translate("MainWindow", "Ctrl+R"))
from PyQt5 import QtWebEngineWidgets


if __name__ == "__main__":
    import sys
    app = QtWidgets.QApplication(sys.argv)
    MainWindow = QtWidgets.QMainWindow()
    ui = Ui_MainWindow()
    ui.setupUi(MainWindow)
    MainWindow.show()
    sys.exit(app.exec_())
